Interview Prep/Helm/Values & Precedence

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.

All Helm questions Roadmap: Helm

More on Values & Precedence