Skip to content

Commit

Permalink
Add feature to bring your own secret resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jzandbergen authored and bokysan committed Dec 1, 2021
1 parent 88c94f9 commit 7d884e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions helm/mail/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
- secretRef:
name: {{ $fullName | quote }}
{{- end }}
{{- if .Values.existingSecret }}
- secretRef:
name: {{ .Values.existingSecret | quote }}
{{- end }}
{{ with .Values.extraEnv }}env: {{- toYaml . | nindent 12 }}{{ end }}
volumeMounts:
- mountPath: /var/spool/postfix
Expand Down
6 changes: 5 additions & 1 deletion helm/mail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ certs:
# hello: world
secret: {}

# Use an existing secret to share with the pod
# as environment variables.
existingSecret: ""

# Define a secret which should be deployed together with the
# chart amd mounted into a specific directory in the pod.
mountSecret:
Expand Down Expand Up @@ -172,4 +176,4 @@ startupProbe:
ps axf | fgrep -v grep | fgrep -q 'opendkim.sh'
lifecycle:
postStart: {}
postStart: {}

0 comments on commit 7d884e4

Please sign in to comment.