docker-postfix/helm/mail/templates/secret-mount.yaml

17 lines
No EOL
439 B
YAML

{{- if .Values.mountSecret.enabled -}}
{{- $chart := "mail" -}}
{{- $fullName := include (print $chart ".fullname") . -}}
{{- $labels := include (print $chart ".labels") . -}}
{{- with .Values.mountSecret.data }}
apiVersion: v1
kind: Secret
metadata:
name: {{ $fullName }}-mount
labels:
{{- $labels | nindent 4 }}
data:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{ end }}
{{- end -}}