What is `import-values`?
AdvancedConceptDependencies, Subcharts & Library Charts
Answer
It copies values from a subchart into the parent's values, the reverse of normal flow. Either from the subchart's exports block, or with explicit child/parent paths:
dependencies:
- name: shop-postgres
repository: file://../shop-postgres
import-values:
- child: service
parent: dbService
Then the parent can read .Values.dbService.port with the subchart's default. It is useful for discovering a subchart's port or service name without duplicating it, but it is easy to misunderstand; many teams avoid it and use helpers instead.
More on Dependencies, Subcharts & Library Charts
How do you declare a chart dependency in Helm 3?BeginnerWhat 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?Intermediate