Commit 85660754 authored by Geoff Simmons's avatar Geoff Simmons

Use helm uuidv4 for admin passwords if not overridden by values.

parent 6d970389
......@@ -10,5 +10,13 @@ metadata:
viking.uplex.de/secret: admin
type: Opaque
data:
{{- if .Values.vikingService.secrets.admin }}
admin: {{ .Values.vikingService.secrets.admin | b64enc | quote }}
{{- else }}
admin: {{ uuidv4 | b64enc | quote }}
{{- end }}
{{- if .Values.vikingService.secrets.dataplaneapi }}
dataplaneapi: {{ .Values.vikingService.secrets.dataplaneapi | b64enc | quote }}
{{- else }}
dataplaneapi: {{ uuidv4 | b64enc | quote }}
{{- end }}
......@@ -45,8 +45,8 @@ vikingService:
minReadySeconds: 0
secrets:
admin: "21d0ac6c-83d5-11ea-8acc-1ff3820da75e"
dataplaneapi: "e24bb312-cb21-46d6-aaec-8ae676f06fea"
admin: ""
dataplaneapi: ""
# Optionally customize the pod dnsConfig.
dnsConfig: {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment