From 965866a611cb8168b066bbbf4f54f6927c5527da Mon Sep 17 00:00:00 2001 From: Roman Parashchenko Date: Tue, 23 Apr 2024 13:01:37 +0200 Subject: [PATCH] add extra volumes params Signed-off-by: Roman Parashchenko --- charts/mailhog/templates/deployment.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/mailhog/templates/deployment.yaml b/charts/mailhog/templates/deployment.yaml index 0f0678ee..2ad69a73 100644 --- a/charts/mailhog/templates/deployment.yaml +++ b/charts/mailhog/templates/deployment.yaml @@ -77,7 +77,7 @@ spec: {{- if .Values.readinessProbe }} {{- toYaml .Values.readinessProbe | nindent 12 }} {{- end }} - {{- if or .Values.auth.enabled .Values.outgoingSMTP.enabled }} + {{- if or .Values.auth.enabled .Values.outgoingSMTP.enabled .Values.extraVolumeMounts }} volumeMounts: {{- if .Values.auth.enabled }} - name: authdir @@ -89,6 +89,9 @@ spec: mountPath: /config readOnly: true {{- end }} + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} {{- with .Values.containerSecurityContext }} securityContext: @@ -111,7 +114,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} - {{- if or .Values.auth.enabled .Values.outgoingSMTP.enabled }} + {{- if or .Values.auth.enabled .Values.outgoingSMTP.enabled .Values.extraVolumeMounts }} volumes: {{- if .Values.auth.enabled }} - name: authdir @@ -124,6 +127,9 @@ spec: secretName: {{ template "mailhog.outgoingSMTPSecret" . }} {{- end }} {{- end }} + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8}} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }}