diff --git a/mailu/Chart.yaml b/mailu/Chart.yaml index 5ee7d1de..6f599e0c 100644 --- a/mailu/Chart.yaml +++ b/mailu/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 appVersion: 2.0.30 -version: 1.5.0 +version: 1.5.1 name: mailu description: This chart installs the Mailu mail system on kubernetes home: https://mailu.io diff --git a/mailu/templates/admin/deployment.yaml b/mailu/templates/admin/deployment.yaml index 9479be41..878ef380 100644 --- a/mailu/templates/admin/deployment.yaml +++ b/mailu/templates/admin/deployment.yaml @@ -9,9 +9,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.admin.updateStrategy }} diff --git a/mailu/templates/clamav/statefulset.yaml b/mailu/templates/clamav/statefulset.yaml index fc557843..7dfbc621 100644 --- a/mailu/templates/clamav/statefulset.yaml +++ b/mailu/templates/clamav/statefulset.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.clamav.replicaCount }} {{- if .Values.clamav.updateStrategy }} diff --git a/mailu/templates/dovecot/deployment.yaml b/mailu/templates/dovecot/deployment.yaml index 1049987d..8a2f20db 100644 --- a/mailu/templates/dovecot/deployment.yaml +++ b/mailu/templates/dovecot/deployment.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.dovecot.updateStrategy }} diff --git a/mailu/templates/fetchmail/deployment.yaml b/mailu/templates/fetchmail/deployment.yaml index f27354ea..c9ff9f96 100644 --- a/mailu/templates/fetchmail/deployment.yaml +++ b/mailu/templates/fetchmail/deployment.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.fetchmail.updateStrategy }} diff --git a/mailu/templates/front/deployment.yaml b/mailu/templates/front/deployment.yaml index 8cd447f1..d517bb51 100644 --- a/mailu/templates/front/deployment.yaml +++ b/mailu/templates/front/deployment.yaml @@ -9,9 +9,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: {{- if eq .Values.front.kind "Deployment" }} replicas: {{ .Values.front.replicaCount }} diff --git a/mailu/templates/oletools/deployment.yaml b/mailu/templates/oletools/deployment.yaml index 849bdc25..5ac1f2df 100644 --- a/mailu/templates/oletools/deployment.yaml +++ b/mailu/templates/oletools/deployment.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.oletools.updateStrategy }} diff --git a/mailu/templates/postfix/deployment.yaml b/mailu/templates/postfix/deployment.yaml index 4a933f55..2db6c337 100644 --- a/mailu/templates/postfix/deployment.yaml +++ b/mailu/templates/postfix/deployment.yaml @@ -8,10 +8,7 @@ metadata: app.kubernetes.io/component: postfix {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + {{- end } spec: replicas: 1 {{- if .Values.postfix.updateStrategy }} diff --git a/mailu/templates/rspamd/deployment.yaml b/mailu/templates/rspamd/deployment.yaml index 89e5b61a..cf73348c 100644 --- a/mailu/templates/rspamd/deployment.yaml +++ b/mailu/templates/rspamd/deployment.yaml @@ -9,9 +9,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.rspamd.updateStrategy }} diff --git a/mailu/templates/webdav/deployment.yaml b/mailu/templates/webdav/deployment.yaml index 094ceef9..71912d6f 100644 --- a/mailu/templates/webdav/deployment.yaml +++ b/mailu/templates/webdav/deployment.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.webdav.updateStrategy }} diff --git a/mailu/templates/webmail/deployment.yaml b/mailu/templates/webmail/deployment.yaml index 2f4e7430..c78115df 100644 --- a/mailu/templates/webmail/deployment.yaml +++ b/mailu/templates/webmail/deployment.yaml @@ -10,9 +10,11 @@ metadata: {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + annotations: + checksum/envvars-configmap: {{ include (print $.Template.BasePath "/envvars-configmap.yaml") . | sha256sum }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.webmail.updateStrategy }}