Interview Prep/Helm/Values & Precedence

What does `--reuse-values` do and why is it dangerous?

AdvancedConceptValues & Precedence
Answer

On upgrade, --reuse-values takes the previous release's fully coalesced values (old chart defaults plus old overrides) as the new chart's defaults, then merges this command's -f and --set on top. The new chart's own values.yaml is effectively ignored.

Danger: a chart upgrade that adds a new required default key (for example api.probes.readiness) renders with that key missing and fails or misbehaves. In CI we never use it; we pass the full set of values files every time so the deploy is reproducible from Git. Helm 3.14+ adds --reset-then-reuse-values, which applies new chart defaults and then the previous overrides.

All Helm questions Roadmap: Helm

More on Values & Precedence