Interview Prep/Helm/Values & Precedence

How are lists merged across values files?

IntermediateConceptValues & Precedence
Answer

They are not merged. A list in a higher-precedence file replaces the whole list from lower layers. If values.yaml has three tolerations and values-prod.yaml sets one, prod gets exactly one.

That is why mature charts model collections as maps keyed by name (extraEnv: {LOG_LEVEL: info}), which deep-merge, and convert them to lists in the template with range $k, $v.

All Helm questions Roadmap: Helm

More on Values & Precedence