matrix-synapse: Remove old-style pgsql auth errors

This migration workaround has caused issues for some users, and should no
longer be necessary
This commit is contained in:
Alexander Olofsson 2023-03-09 18:27:50 +01:00
parent 572ba5d417
commit 89fd74827f
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -150,10 +150,7 @@ Set postgresql username
*/}}
{{- define "matrix-synapse.postgresql.username" -}}
{{- if .Values.postgresql.enabled -}}
{{- if .Values.postgresql.postgresqlUsername -}}
{{- fail "You need to switch to the new postgresql.auth values." -}}
{{- end -}}
{{- .Values.postgresql.auth.username | default "postgres" }}
{{ required "A valid postgresql.auth.username is required" .Values.postgresql.auth.username }}
{{- else -}}
{{ required "A valid externalPostgresql.username is required" .Values.externalPostgresql.username }}
{{- end -}}
@ -164,10 +161,7 @@ Set postgresql password
*/}}
{{- define "matrix-synapse.postgresql.password" -}}
{{- if .Values.postgresql.enabled -}}
{{- if .Values.postgresql.postgresqlPassword -}}
{{- fail "You need to switch to the new postgresql.auth values." -}}
{{- end -}}
{{- .Values.postgresql.auth.password | default "synapse" }}
{{ required "A valid postgresql.auth.password is required" .Values.postgresql.auth.password }}
{{- else if not (and .Values.externalPostgresql.existingSecret .Values.externalPostgresql.existingSecretPasswordKey) -}}
{{ required "A valid externalPostgresql.password is required" .Values.externalPostgresql.password }}
{{- end -}}