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: ...@@ -10,5 +10,13 @@ metadata:
viking.uplex.de/secret: admin viking.uplex.de/secret: admin
type: Opaque type: Opaque
data: data:
{{- if .Values.vikingService.secrets.admin }}
admin: {{ .Values.vikingService.secrets.admin | b64enc | quote }} 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 }} dataplaneapi: {{ .Values.vikingService.secrets.dataplaneapi | b64enc | quote }}
{{- else }}
dataplaneapi: {{ uuidv4 | b64enc | quote }}
{{- end }}
...@@ -45,8 +45,8 @@ vikingService: ...@@ -45,8 +45,8 @@ vikingService:
minReadySeconds: 0 minReadySeconds: 0
secrets: secrets:
admin: "21d0ac6c-83d5-11ea-8acc-1ff3820da75e" admin: ""
dataplaneapi: "e24bb312-cb21-46d6-aaec-8ae676f06fea" dataplaneapi: ""
# Optionally customize the pod dnsConfig. # Optionally customize the pod dnsConfig.
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