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.
More on Values & Precedence
What is the precedence order of values in Helm?BeginnerWhat is the difference between `--set` and `--set-string`?BeginnerHow do you set nested keys, list items and keys containing dots with `--set`?IntermediateWhat are `--set-file`, `--set-json` and `--set-literal` for?IntermediateHow do you remove a default value set in a chart's `values.yaml`?IntermediateWhat does `--reuse-values` do and why is it dangerous?Advanced