File tree 3 files changed +34
-2
lines changed
3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ Expand the name of the chart.
19
19
{ {- end } }
20
20
{ {- end } }
21
21
22
+ { {/*
23
+ Get the admin password value or a randomly generated password.
24
+ Note adminPassword is deprecated, and will be removed in a future version.
25
+ */} }
26
+ { {- define " mission-control.admin.password" -} }
27
+ { {- if .Values.admin.password -} }
28
+ { { .Values.admin.password -} }
29
+ { {- else if .Values.adminPassword -} }
30
+ { { .Values.adminPassword -} }
31
+ { {- else -} }
32
+ { { randAlphaNum 10 } }
33
+ { {- end -} }
34
+ { {- end -} }
22
35
23
36
{ {/*
24
37
Create chart name and version as used by the chart label.
Original file line number Diff line number Diff line change 44
44
secretKeyRef :
45
45
name : {{ .Values.db.jwtSecretKeyRef.name }}
46
46
key : {{ .Values.db.jwtSecretKeyRef.key }}
47
+ {{- if ne .Values.admin.existingSecret "" }}
47
48
- name : ADMIN_PASSWORD
48
- value : {{ .Values.adminPassword }}
49
+ valueFrom :
50
+ secretKeyRef :
51
+ name : {{ .Values.admin.existingSecret }}
52
+ key : admin-password
53
+ {{- else }}
54
+ - name : ADMIN_PASSWORD
55
+ value : {{ include "mission-control.admin.password" . }}
56
+ {{- end }}
49
57
envFrom :
50
58
- secretRef :
51
59
name : {{ .Values.smtp.secretRef.name }}
Original file line number Diff line number Diff line change @@ -106,7 +106,18 @@ smtp:
106
106
# SMTP_PORT: <port>
107
107
# SMTP_USER: <user>
108
108
# SMTP_PASSWORD: <password>
109
- adminPassword : admin
109
+ # DEPRECATED - adminPassword is deprecated, and will be removed in a future version.
110
+ # adminPassword: ""
111
+ admin :
112
+ # If you leave this empty, and do not override with admin.existingSecret, a
113
+ # random password will be generated for you.
114
+ password : " "
115
+ # Specifying an existing secret name will override the admin.password.
116
+ # The secret key must be "admin-password"
117
+ # For example, to create from a file:
118
+ # echo -n 'S!B\*d$zDsb=' > ./admin-password.txt
119
+ # kubectl create secret generic admin-password-secret --from-file=admin-password.txt
120
+ existingSecret : " "
110
121
canary-checker :
111
122
image :
112
123
type : full
You can’t perform that action at this time.
0 commit comments