diff --git a/mailu/templates/postfix/deployment.yaml b/mailu/templates/postfix/deployment.yaml index a48d1ad1..aa1d2909 100644 --- a/mailu/templates/postfix/deployment.yaml +++ b/mailu/templates/postfix/deployment.yaml @@ -60,6 +60,9 @@ spec: {{- if .Values.postfix.initContainers }} initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.postfix.initContainers "context" $) | nindent 8 }} {{- end }} + {{- if .Values.postfix.sidecars }} + sidecars: {{- include "common.tplvalues.render" (dict "value" .Values.postfix.sidecars "context" $) | nindent 8 }} + {{- end }} containers: - name: postfix image: {{ .Values.imageRegistry }}/{{ .Values.postfix.image.repository }}:{{ default (include "mailu.version" .) .Values.postfix.image.tag }} diff --git a/mailu/values.yaml b/mailu/values.yaml index e79550b0..35cc086f 100644 --- a/mailu/values.yaml +++ b/mailu/values.yaml @@ -1172,6 +1172,16 @@ postfix: ## command: ['sh', '-c', 'echo "hello world"'] initContainers: [] + ## @param postfix.sidecards Add additional sidecars to the pod + ## ref: https://kubernetes.io/docs/concepts/workloads/pods/ + ## e.g: + ## sidecars: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## command: ['sh', '-c', 'echo "hello world"'] + sidecars: [] + ## @param postfix.priorityClassName Pods' priorityClassName priorityClassName: ""