Interview Prep/Helm/Values & Environments

A deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?

AdvancedScenarioValues & Environments
Answer

Situation read → The new chart added api.probes.startup in values.yaml, and the template reads it. With --reuse-values, Helm used the old release's values as the base, so the new default never arrived and the template rendered an empty probe.

What I'd do →

  1. Roll back: helm rollback shop -n shop.
  2. Change the pipeline to pass every values file explicitly and drop --reuse-values (or use --reset-then-reuse-values if you must keep ad-hoc overrides).
  3. Make templates defensive (with, default) for newly added keys.
  4. Keep env values in Git so the full set is always available.

Why → A deploy should be fully reproducible from Git, not dependent on what the previous run stored.

Interview tip → Explaining the mechanics of --reuse-values is a strong signal.

All Helm questions Roadmap: Helm

More on Values & Environments