Changeset 0.28.6 (#192)
This commit is contained in:
31
chart/templates/secret.yaml
Normal file
31
chart/templates/secret.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
{{- if not .Values.existingSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-secrets
|
||||
labels:
|
||||
{{- include "switchboard.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
JWT_SECRET: {{ required "jwtSecret is required" .Values.jwtSecret | quote }}
|
||||
{{- if .Values.encryptionKey }}
|
||||
ENCRYPTION_KEY: {{ .Values.encryptionKey | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.database.postgres.password }}
|
||||
POSTGRES_PASSWORD: {{ .Values.database.postgres.password | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.admin.password }}
|
||||
SWITCHBOARD_ADMIN_USERNAME: {{ .Values.admin.username | quote }}
|
||||
SWITCHBOARD_ADMIN_PASSWORD: {{ .Values.admin.password | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.admin.email }}
|
||||
SWITCHBOARD_ADMIN_EMAIL: {{ .Values.admin.email | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.storage.s3.accessKey }}
|
||||
S3_ACCESS_KEY: {{ .Values.storage.s3.accessKey | quote }}
|
||||
S3_SECRET_KEY: {{ .Values.storage.s3.secretKey | quote }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.auth.mode "oidc") .Values.auth.oidc.clientSecret }}
|
||||
OIDC_CLIENT_SECRET: {{ .Values.auth.oidc.clientSecret | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user