matrix-synapse: Require switch to new auth config
This commit is contained in:
parent
3620f71b05
commit
09e1669cbc
3 changed files with 9 additions and 9 deletions
|
@ -150,7 +150,7 @@ Set postgresql username
|
|||
*/}}
|
||||
{{- define "matrix-synapse.postgresql.username" -}}
|
||||
{{- if .Values.postgresql.enabled -}}
|
||||
{{- if (and (not .Values.postgresql.auth.username) (.Values.postgresql.postgresqlUsername)) -}}
|
||||
{{- if .Values.postgresql.postgresqlUsername -}}
|
||||
{{- fail "You need to switch to the new postgresql.auth values." -}}
|
||||
{{- end -}}
|
||||
{{- .Values.postgresql.auth.username | default "postgres" }}
|
||||
|
@ -164,7 +164,7 @@ Set postgresql password
|
|||
*/}}
|
||||
{{- define "matrix-synapse.postgresql.password" -}}
|
||||
{{- if .Values.postgresql.enabled -}}
|
||||
{{- if (and (not .Values.postgresql.auth.password) (.Values.postgresql.postgresqlPassword)) -}}
|
||||
{{- if .Values.postgresql.postgresqlPassword -}}
|
||||
{{- fail "You need to switch to the new postgresql.auth values." -}}
|
||||
{{- end -}}
|
||||
{{- .Values.postgresql.auth.password | default "synapse" }}
|
||||
|
@ -178,7 +178,7 @@ Set postgresql database
|
|||
*/}}
|
||||
{{- define "matrix-synapse.postgresql.database" -}}
|
||||
{{- if .Values.postgresql.enabled -}}
|
||||
{{- if (and (not .Values.postgresql.auth.database) (.Values.postgresql.postgresqlDatabase)) -}}
|
||||
{{- if .Values.postgresql.postgresqlDatabase -}}
|
||||
{{- fail "You need to switch to the new postgresql.auth values." -}}
|
||||
{{- end -}}
|
||||
{{- .Values.postgresql.auth.database | default "synapse" }}
|
||||
|
|
|
@ -87,7 +87,7 @@ spec:
|
|||
secretKeyRef:
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
name: {{ .Values.postgresql.existingSecret | default (include "matrix-synapse.postgresql.fullname" .) }}
|
||||
key: postgresql-password
|
||||
key: password
|
||||
{{- else }}
|
||||
name: {{ .Values.externalPostgresql.existingSecret }}
|
||||
key: {{ .Values.externalPostgresql.existingSecretPasswordKey }}
|
||||
|
|
|
@ -677,17 +677,17 @@ wellknown:
|
|||
postgresql:
|
||||
enabled: true
|
||||
|
||||
auth: {}
|
||||
auth:
|
||||
# XXX Change me!
|
||||
# password: synapse
|
||||
password: synapse
|
||||
|
||||
## Or use existing secret with "postgresql-password" key
|
||||
## Or use existing secret with "password" key
|
||||
## instead of static password
|
||||
##
|
||||
# existingSecret: postgresql-secret
|
||||
|
||||
# username: synapse
|
||||
# database: synapse
|
||||
username: synapse
|
||||
database: synapse
|
||||
|
||||
primary:
|
||||
initdb:
|
||||
|
|
Loading…
Reference in a new issue