rename adminPanel to dashboard and adminFrontend and adminBackend to frontend and backend. Fix JWT secrets

This commit is contained in:
Maarten de Waard 2021-10-05 16:39:47 +02:00
parent 18276be75d
commit 80c2f776d3
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA
12 changed files with 268 additions and 258 deletions

View file

@ -1,8 +1,8 @@
{{- if (include "adminBackend.createSecret" .) }}
{{- if (include "backend.createSecret" .) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "adminBackend.secretName" . }}
name: {{ include "backend.secretName" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
@ -12,12 +12,12 @@ metadata:
{{- end }}
type: Opaque
data:
{{- if and (.Values.adminBackend.password) (not .Values.adminBackend.existingSecret) }}
adminBackend-password: {{ .Values.adminBackend.password | b64enc | quote }}
{{- else if not .Values.adminBackend.existingSecret }}
adminBackend-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- if and (.Values.backend.password) (not .Values.backend.existingSecret) }}
backend-password: {{ .Values.backend.password | b64enc | quote }}
{{- else if not .Values.backend.existingSecret }}
backend-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- if and (.Values.adminBackend.smtp.password) (.Values.adminBackend.smtp.enabled) (not .Values.adminBackend.smtp.existingSecret) }}
smtp-password: {{ .Values.adminBackend.smtp.password | b64enc | quote }}
{{- if and (.Values.backend.smtp.password) (.Values.backend.smtp.enabled) (not .Values.backend.smtp.existingSecret) }}
smtp-password: {{ .Values.backend.smtp.password | b64enc | quote }}
{{- end }}
{{- end }}