matrix-synapse: Fix redis password selection

Should now only use internal redis password when the internal redis is
enabled.

Fixes #34
This commit is contained in:
Alexander Olofsson 2023-03-01 18:54:15 +01:00
parent 9b4f59f5ed
commit b8fdc7b187
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -262,9 +262,9 @@ Set redis port
Set redis password Set redis password
*/}} */}}
{{- define "matrix-synapse.redis.password" -}} {{- define "matrix-synapse.redis.password" -}}
{{- if .Values.redis.password -}} {{- if (and .Values.redis.enabled .Values.redis.password) -}}
{{ .Values.redis.password }} {{ .Values.redis.password }}
{{- else if .Values.redis.auth.password -}} {{- else if (and .Values.redis.enabled .Values.redis.auth.password) -}}
{{ .Values.redis.auth.password }} {{ .Values.redis.auth.password }}
{{- else if .Values.externalRedis.password -}} {{- else if .Values.externalRedis.password -}}
{{ .Values.externalRedis.password }} {{ .Values.externalRedis.password }}