Initial Commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-26 20:33:17 +02:00
commit aeaae484d3
13 changed files with 796 additions and 0 deletions

View File

@ -0,0 +1,19 @@
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 }}