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.
More on Chart Structure & Metadata
What files does `helm create mychart` generate and which ones matter?BeginnerWhat are the required fields in `Chart.yaml`?BeginnerWhat is the difference between `version` and `appVersion`?BeginnerWhy should `appVersion` be quoted in `Chart.yaml`?BeginnerWhat does `type: library` vs `type: application` mean?BeginnerWhat is the `kubeVersion` field used for?Intermediate