How do you declare a chart dependency in Helm 3?
BeginnerConceptDependencies, Subcharts & Library Charts
Answer
In the dependencies list of Chart.yaml (Helm 2 used a separate requirements.yaml):
dependencies:
- name: postgresql
version: "16.x.x"
repository: "oci://registry-1.docker.io/bitnamicharts"
condition: postgresql.enabled
- name: shop-postgres
version: "0.1.0"
repository: "file://../shop-postgres"
alias: postgres
repository can be an HTTP repo URL, an @alias of a repo you added locally, an oci:// reference or a file:// path.
More on Dependencies, Subcharts & Library Charts
What is the difference between `helm dependency update` and `helm dependency build`?IntermediateWhat is `Chart.lock` and why commit it?BeginnerHow does `condition` work on a dependency?BeginnerWhat are `tags` on dependencies?IntermediateWhat does `alias` do on a dependency?IntermediateWhat is `import-values`?Advanced