Skip to content

Commit

Permalink
fix: disabling automatic creation of adminPassword and adminSecret wh…
Browse files Browse the repository at this point in the history
…en the admin panel is disabled
  • Loading branch information
Alexander Lomov committed Dec 12, 2024
1 parent d55027b commit 4a7fba4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions charts/centrifugo/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ data:
{{- if .Values.secrets.grpcApiKey }}
grpcApiKey: {{ .Values.secrets.grpcApiKey | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.adminPassword }}
adminPassword: {{ .Values.secrets.adminPassword | b64enc | quote }}
{{- else }}
adminPassword: {{ randAlphaNum 12 | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.adminSecret }}
adminSecret: {{ .Values.secrets.adminSecret | b64enc | quote }}
{{- else }}
adminSecret: {{ randAlphaNum 24 | b64enc | quote }}
{{- if.Values.config.admin }}
{{- if.Values.secrets.adminPassword }}
adminPassword: {{.Values.secrets.adminPassword | b64enc | quote }}
{{- else }}
adminPassword: {{ randAlphaNum 12 | b64enc | quote }}
{{- end }}
{{- if.Values.secrets.adminSecret }}
adminSecret: {{.Values.secrets.adminSecret | b64enc | quote }}
{{- else }}
adminSecret: {{ randAlphaNum 24 | b64enc | quote }}
{{- end }}
{{- end }}
{{- if .Values.secrets.redisAddress }}
redisAddress: {{ .Values.secrets.redisAddress | b64enc | quote }}
Expand Down

0 comments on commit 4a7fba4

Please sign in to comment.