UNCLASSIFIED

Commit d29d30a3 authored by Grant Duncklee's avatar Grant Duncklee
Browse files

only generate secret once, secret must survive upgrades

parent 102c702c
Pipeline #239357 passed with stages
in 2 minutes and 39 seconds
{{- if .Values.secret.enabled -}} {{- if .Values.secret.enabled -}}
{{- if not (lookup "v1" "Secret" "" "{{ template 'nexus.name' . }}-secret") }}
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
...@@ -14,3 +15,4 @@ data: ...@@ -14,3 +15,4 @@ data:
admin.password: {{ randAlphaNum 12 | b64enc | quote }} admin.password: {{ randAlphaNum 12 | b64enc | quote }}
admin.username: YWRtaW4K admin.username: YWRtaW4K
{{- end}} {{- end}}
{{- end}}
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