mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-07 15:04:56 +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:
|
- secretRef:
|
||||||
name: {{ $fullName | quote }}
|
name: {{ $fullName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.existingSecret }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ .Values.existingSecret | quote }}
|
||||||
|
{{- end }}
|
||||||
{{ with .Values.extraEnv }}env: {{- toYaml . | nindent 12 }}{{ end }}
|
{{ with .Values.extraEnv }}env: {{- toYaml . | nindent 12 }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/spool/postfix
|
- mountPath: /var/spool/postfix
|
||||||
|
|
|
@ -90,6 +90,10 @@ certs:
|
||||||
# hello: world
|
# hello: world
|
||||||
secret: {}
|
secret: {}
|
||||||
|
|
||||||
|
# Use an existing secret to share with the pod
|
||||||
|
# as environment variables.
|
||||||
|
existingSecret: ""
|
||||||
|
|
||||||
# Define a secret which should be deployed together with the
|
# Define a secret which should be deployed together with the
|
||||||
# chart amd mounted into a specific directory in the pod.
|
# chart amd mounted into a specific directory in the pod.
|
||||||
mountSecret:
|
mountSecret:
|
||||||
|
|
Loading…
Add table
Reference in a new issue