From 536cba8dac7acc4a6d12e2c9be051e30102f49aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Sat, 24 Jun 2023 10:14:17 +0200 Subject: [PATCH] allow postfix to run sidecars --- mailu/templates/postfix/deployment.yaml | 3 +++ mailu/values.yaml | 10 ++++++++++ 2 files changed, 13 insertions(+) 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: ""