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.
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