A values key rename is needed (`image.name` to `image.repository`). How do you avoid breaking users?
AdvancedScenarioValues & Environments
Answer
Situation read → Consumers have overrides with the old key; a silent rename would deploy the default image.
What I'd do →
- Support both for one minor version:
{{ .Values.image.repository | default .Values.image.name }}. - Emit a deprecation warning in
NOTES.txtwhen the old key is set. - Remove it in the next major version, and in that version
failif the old key is still present, with instructions. - Document it in the chart changelog (
artifacthub.io/changesannotation).
Why → A deprecation window plus a hard failure is far safer than a silent behavior change.
Interview tip → "Fail loudly on removed keys" is the key phrase.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerA value that should be `false` in prod keeps rendering as enabled. Where do you look?IntermediateDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?Beginner