Interview Prep/Helm/Dependencies, Subcharts & Library Charts

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.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts