Interview Prep/Helm/Chart Structure & Metadata

When would you use `.Release.IsInstall` or `.Release.Revision`?

IntermediateConceptChart Structure & Metadata
Answer

.Release.IsInstall and .Release.IsUpgrade let a template behave differently on first install, for example generating an initial admin password only on install. .Release.Revision changes on every upgrade; putting it in a pod annotation forces a rollout on every deploy:

annotations:
  rollme: {{ .Release.Revision | quote }}

That is usually an anti-pattern (needless restarts); prefer a checksum of the actual config. Neither works reliably under Argo CD, which always renders as an install.

All Helm questions Roadmap: Helm

More on Chart Structure & Metadata