← All notes

Helm dependency: keep Chart.yaml in sync with the charts/ directory

Answer: Helm charts store their dependencies in 'charts/'. For chart developers, it is often easier to declare those dependencies in 'Chart.yaml'.

Chart.yaml and the charts/ directory

The dependency commands operate on that file, making it easy to synchronize the desired dependencies with the actual dependencies stored in the 'charts/' directory.

A Chart.yaml example declares two dependencies: nginx version 1.2.3 and memcached version 3.2.1, each with a repository URL.

The 'name' should be the name of a chart. The 'version' field should contain a semantic version or version range.

Note: 'repository' can be an alias. The alias must start with 'alias:' or '@'.

The repository URL should point to a Chart Repository. Helm retrieves that repository's index by appending /index.yaml to the URL.

Local paths and subcommands

From 2.2.0 onward, repository may be a local directory of dependency charts, and that path should start with the file:// prefix.

A dependency chart retrieved locally does not require the repository to be added with helm add repo.

Related commands include helm dependency build, which rebuilds the charts/ directory based on the Chart.lock file, and helm dependency list, which lists the dependencies for the given chart.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm dependency; The Helm Authors, helm dependency (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm dependency; The Helm Authors, helm dependency (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.

Cite this

Permanent ID: iil:note:bzwgb9kz

iinventedlight. 2026. "Helm dependency: keep Chart.yaml in sync with the charts/ directory." iinventedlight Library, iil:note:bzwgb9kz, version of 2026-11-26. https://iinventedlight.com/library/notes/helm-dependency/. License: CC-BY-4.0.

@misc{iil_note_bzwgb9kz,
  author = {{iinventedlight}},
  title = {{Helm dependency: keep Chart.yaml in sync with the charts/ directory}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-26},
  url = {https://iinventedlight.com/library/notes/helm-dependency/},
  note = {Permanent ID iil:note:bzwgb9kz. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-dependency.md.