Markus Pesch
aeaae484d3
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
510 B
YAML
20 lines
510 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "postfixadmin.fullname" . }}
|
|
type: Opaque
|
|
stringData:
|
|
|
|
{{- if not (hasKey .Values "config") -}}
|
|
{{- $_ := set .Values "config" dict -}}
|
|
{{- end -}}
|
|
|
|
{{- if not (hasKey .Values.config "POSTFIXADMIN_SETUP_PASSWORD") -}}
|
|
{{- $_ := set .Values.config "POSTFIXADMIN_SETUP_PASSWORD" (randAlphaNum 48 | quote ) -}}
|
|
{{- end -}}
|
|
|
|
{{/* SETUP CONFIG */}}
|
|
{{ range $key, $value := .Values.config }}
|
|
{{ upper $key}}: {{ quote $value }}
|
|
{{ end }}
|