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 →
- Template:
{{ .Values.image.tag | default .Chart.AppVersion }}, so both are possible. - For internal apps released together with their chart, set
appVersionat package time (helm package --app-version $VERSION) so one chart version pins one image. - For GitOps environments where images change often, set the tag in the environment values file and let CI or Image Updater commit it.
- 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.
More on Chart Design & Authoring
Your team has 15 near-identical YAML folders, one per microservice per environment. How do you introduce Helm?BeginnerShould you build one generic chart for all microservices or one chart per service?IntermediateA developer hardcoded `namespace: production` in every template. What is wrong and how do you fix it?BeginnerChanging a ConfigMap value in the chart does not restart the pods, so the app keeps old config. What do you change?IntermediateYou need the same chart to support both Ingress and Gateway API HTTPRoute. How do you design it?IntermediateYour chart's Deployment template has grown to 300 lines of nested `if`s. How do you clean it up?Intermediate