Interview Prep/Helm/Chart Design & Authoring

A teammate wants to put the image tag in `Chart.yaml` `appVersion` only. Another wants it only in values. What do you recommend?

IntermediateScenarioChart Design & Authoring
Answer

Situation read → Both work; the question is what is the source of truth and how rollbacks behave.

What I'd do →

  1. Template: {{ .Values.image.tag | default .Chart.AppVersion }}, so both are possible.
  2. For internal apps released together with their chart, set appVersion at package time (helm package --app-version $VERSION) so one chart version pins one image.
  3. For GitOps environments where images change often, set the tag in the environment values file and let CI or Image Updater commit it.
  4. Never use latest.

Why → One pinned value per deploy keeps helm history meaningful and rollbacks exact.

Interview tip → Say the important thing is immutability and traceability, not where the tag lives.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring