Skip to content

Commit

Permalink
add extra volumes params
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Parashchenko <[email protected]>
  • Loading branch information
romikoops committed Apr 23, 2024
1 parent 58a318a commit 965866a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions charts/mailhog/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -89,6 +89,9 @@ spec:
mountPath: /config
readOnly: true
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext:
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 965866a

Please sign in to comment.