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 }}