mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-19 12:54:44 +08:00
17 lines
No EOL
439 B
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 -}} |