Add feature to bring your own secret resource

This commit is contained in:
Justin Zandbergen 2021-11-25 14:26:55 +01:00
parent 88c94f979a
commit 5d04a1ff92
No known key found for this signature in database
GPG key ID: 02500B9A56D83FF3
2 changed files with 9 additions and 1 deletions

View file

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

View file

@ -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: