use correct key for redis existingSecret
This commit is contained in:
parent
f7f340546c
commit
4992f55885
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
{{- if (and .Values.postgresql.enabled (and (not .Values.postgresql.postgresqlPassword) (not .Values.postgresql.existingSecret))) -}}
|
{{- if (and .Values.postgresql.enabled (and (not .Values.postgresql.postgresqlPassword) (not .Values.postgresql.existingSecret))) -}}
|
||||||
{{- fail "You must specify a static postgres password or existing secret if using the included postgres chart" -}}
|
{{- fail "You must specify a static postgres password or existing secret if using the included postgres chart" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (and .Values.redis.enabled (and .Values.redis.usePassword (and (not .Values.redis.auth.password) (not .Values.redis.existingSecret)))) -}}
|
{{- if (and .Values.redis.enabled (and .Values.redis.usePassword (and (not .Values.redis.auth.password) (not .Values.redis.auth.existingSecret)))) -}}
|
||||||
{{- fail "You must specify a static redis password or existing secret if using the included redis chart" -}}
|
{{- fail "You must specify a static redis password or existing secret if using the included redis chart" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
---
|
---
|
||||||
|
@ -98,7 +98,7 @@ spec:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.redis.enabled }}
|
{{- if .Values.redis.enabled }}
|
||||||
name: {{ .Values.redis.existingSecret | default (include "matrix-synapse.redis.fullname" .) }}
|
name: {{ .Values.redis.auth.existingSecret | default (include "matrix-synapse.redis.fullname" .) }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
{{- else }}
|
{{- else }}
|
||||||
name: {{ .Values.externalRedis.existingSecret }}
|
name: {{ .Values.externalRedis.existingSecret }}
|
||||||
|
|
Loading…
Reference in a new issue