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
- id: C1 claim: Dependency charts are stored in the charts/ directory. source: S1 evidence: "Helm charts store their dependencies in 'charts/'."
- id: C2 claim: The version field accepts a semantic version or a version range. source: S1 evidence: "The 'version' field should contain a semantic version or version range."
- id: C3 claim: The same Chart.yaml and charts/ workflow is described in the markdown source. source: S2 evidence: "Helm charts store their dependencies in 'charts/'."
Sources
- [S1] helm dependency. The Helm Authors. https://helm.sh/docs/helm/helm_dependency/ . License: MIT. Accessed 2026-11-26.
- [S2] helm dependency (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/helm/helm_dependency.md . License: MIT. Accessed 2026-11-26.
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
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.},
}
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.
- helm-dependency.schema.json (schema; CC-BY-4.0)
- helm-dependency.table.json (table; CC-BY-4.0)
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.