allow to opt-out from rollme annotation

This commit is contained in:
Roberto Santalla 2023-01-27 21:57:49 +01:00 committed by Renaud Chaput
parent ae892d539e
commit 890042fed8
2 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Rolling pod annotations Rolling pod annotations
*/}} */}}
{{- define "mastodon.rollingPodAnnotations" -}} {{- define "mastodon.rollingPodAnnotations" -}}
{{- if .Values.revisionPodAnnotation }}
rollme: {{ .Release.Revision | quote }} rollme: {{ .Release.Revision | quote }}
{{- end }}
checksum/config-secrets: {{ include ( print $.Template.BasePath "/secrets.yaml" ) . | sha256sum | quote }} checksum/config-secrets: {{ include ( print $.Template.BasePath "/secrets.yaml" ) . | sha256sum | quote }}
checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-env.yaml" ) . | sha256sum | quote }} checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-env.yaml" ) . | sha256sum | quote }}
{{- end }} {{- end }}

View File

@ -399,7 +399,11 @@ serviceAccount:
# set with podAnnotations will be added to all deployment-managed pods. # set with podAnnotations will be added to all deployment-managed pods.
podAnnotations: {} podAnnotations: {}
# -- The annotations set with jobAnnotations will be added to all job pods. # If set to true, an annotation with the current chart release number will be added to all mastodon pods. This will
# cause all pods to be recreated every `helm upgrade` regardless of whether their config or spec changes.
revisionPodAnnotation: true
# The annotations set with jobAnnotations will be added to all job pods.
jobAnnotations: {} jobAnnotations: {}
# -- Default resources for all Deployments and jobs unless overwritten # -- Default resources for all Deployments and jobs unless overwritten