mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
Add feature to bring your own secret resource
This commit is contained in:
parent
88c94f979a
commit
5d04a1ff92
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
@ -172,4 +176,4 @@ startupProbe:
|
|||
ps axf | fgrep -v grep | fgrep -q 'opendkim.sh'
|
||||
|
||||
lifecycle:
|
||||
postStart: {}
|
||||
postStart: {}
|
||||
|
|
Loading…
Add table
Reference in a new issue