What warning does Helm print when a values file overrides a map with a scalar?
AdvancedConceptValues & Precedence
Answer
When types clash during coalescing, Helm keeps going and prints warnings like:
coalesce.go:286: warning: cannot overwrite table with non table for shop.api.resources (map[limits:map[memory:256Mi]])
It means a higher layer set api.resources: "" (or a list) where the default is a map. The override is ignored or partially applied. Treat these warnings as errors in CI: helm template ... 2>&1 | grep -q 'warning: cannot overwrite' && exit 1.
More on Values & Precedence
What is the precedence order of values in Helm?BeginnerHow are lists merged across values files?IntermediateWhat 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`?Intermediate