Skip to content

Commit 1e24c79

Browse files
committed
Ensure env-vars changes are always immediately applied by forcing rolling-updates
1 parent 98da259 commit 1e24c79

File tree

11 files changed

+55
-33
lines changed

11 files changed

+55
-33
lines changed

mailu/templates/admin/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ spec:
2828
{{- if .Values.admin.podLabels }}
2929
{{- include "common.tplvalues.render" (dict "value" .Values.admin.podLabels "context" $) | nindent 8 }}
3030
{{- end }}
31-
{{- if .Values.admin.podAnnotations }}
32-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.admin.podAnnotations "context" $) | nindent 8 }}
33-
{{- end }}
31+
annotations:
32+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
33+
{{- if .Values.admin.podAnnotations }}
34+
{{- include "common.tplvalues.render" ( dict "value" .Values.admin.podAnnotations "context" $) | nindent 8 }}
35+
{{- end }}
3436
spec:
3537
{{- include "common.images.pullSecrets" (dict "images" (list .Values.admin.image) "global" .Values.global) | nindent 6 }}
3638
{{- if .Values.admin.hostAliases }}

mailu/templates/clamav/statefulset.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ spec:
3030
{{- if .Values.clamav.podLabels }}
3131
{{- include "common.tplvalues.render" (dict "value" .Values.clamav.podLabels "context" $) | nindent 8 }}
3232
{{- end }}
33-
{{- if .Values.clamav.podAnnotations }}
34-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.clamav.podAnnotations "context" $) | nindent 8 }}
35-
{{- end }}
33+
annotations:
34+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
35+
{{- if .Values.clamav.podAnnotations }}
36+
{{- include "common.tplvalues.render" ( dict "value" .Values.clamav.podAnnotations "context" $) | nindent 8 }}
37+
{{- end }}
3638
spec:
3739
{{- include "common.images.pullSecrets" (dict "images" (list .Values.clamav.image) "global" .Values.global) | nindent 6 }}
3840
{{- if .Values.clamav.hostAliases }}

mailu/templates/dovecot/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.dovecot.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.dovecot.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.dovecot.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.dovecot.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.dovecot.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.dovecot.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.dovecot.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.dovecot.hostAliases }}

mailu/templates/fetchmail/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.fetchmail.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.fetchmail.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.fetchmail.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.fetchmail.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.fetchmail.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.fetchmail.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.fetchmail.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.fetchmail.hostAliases }}

mailu/templates/front/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ spec:
3333
{{- if .Values.front.podLabels }}
3434
{{- include "common.tplvalues.render" (dict "value" .Values.front.podLabels "context" $) | nindent 8 }}
3535
{{- end }}
36-
{{- if .Values.front.podAnnotations }}
37-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.front.podAnnotations "context" $) | nindent 8 }}
38-
{{- end }}
36+
annotations:
37+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
38+
{{- if .Values.front.podAnnotations }}
39+
{{- include "common.tplvalues.render" ( dict "value" .Values.front.podAnnotations "context" $) | nindent 8 }}
40+
{{- end }}
3941
spec:
4042
{{- include "common.images.pullSecrets" (dict "images" (list .Values.front.image) "global" .Values.global) | nindent 6 }}
4143
{{- if .Values.front.hostAliases }}

mailu/templates/oletools/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.oletools.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.oletools.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.oletools.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.oletools.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.oletools.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.oletools.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.oletools.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.oletools.hostAliases }}

mailu/templates/postfix/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ spec:
2828
{{- if .Values.postfix.podLabels }}
2929
{{- include "common.tplvalues.render" (dict "value" .Values.postfix.podLabels "context" $) | nindent 8 }}
3030
{{- end }}
31-
{{- if .Values.postfix.podAnnotations }}
32-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.postfix.podAnnotations "context" $) | nindent 8 }}
33-
{{- end }}
31+
annotations:
32+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
33+
{{- if .Values.postfix.podAnnotations }}
34+
{{- include "common.tplvalues.render" ( dict "value" .Values.postfix.podAnnotations "context" $) | nindent 8 }}
35+
{{- end }}
3436
spec:
3537
{{- include "common.images.pullSecrets" (dict "images" (list .Values.postfix.image) "global" .Values.global) | nindent 6 }}
3638
{{- if .Values.postfix.hostAliases }}

mailu/templates/rspamd/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.rspamd.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.rspamd.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.rspamd.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.rspamd.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.rspamd.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.rspamd.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.rspamd.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.rspamd.hostAliases }}

mailu/templates/tika/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.tika.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.tika.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.tika.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.tika.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.tika.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.tika.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.tika.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.tika.hostAliases }}

mailu/templates/webdav/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ spec:
2929
{{- if .Values.webdav.podLabels }}
3030
{{- include "common.tplvalues.render" (dict "value" .Values.webdav.podLabels "context" $) | nindent 8 }}
3131
{{- end }}
32-
{{- if .Values.webdav.podAnnotations }}
33-
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.webdav.podAnnotations "context" $) | nindent 8 }}
34-
{{- end }}
32+
annotations:
33+
checksum/envvars-configmap.yaml: {{ include (print .Template.BasePath "/envvars-configmap.yaml") . | sha256sum }}
34+
{{- if .Values.webdav.podAnnotations }}
35+
{{- include "common.tplvalues.render" ( dict "value" .Values.webdav.podAnnotations "context" $) | nindent 8 }}
36+
{{- end }}
3537
spec:
3638
{{- include "common.images.pullSecrets" (dict "images" (list .Values.webdav.image) "global" .Values.global) | nindent 6 }}
3739
{{- if .Values.webdav.hostAliases }}

0 commit comments

Comments
 (0)