From f501016e33d390234221b2e42aa2dc4e4652c9bc Mon Sep 17 00:00:00 2001 From: Nakshathru Date: Sun, 13 Mar 2022 00:03:41 +0530 Subject: [PATCH] Fix - failing to detect redis secret --- charts/rasa-x/templates/_redis.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/rasa-x/templates/_redis.tpl b/charts/rasa-x/templates/_redis.tpl index 5746318b..b8e44696 100644 --- a/charts/rasa-x/templates/_redis.tpl +++ b/charts/rasa-x/templates/_redis.tpl @@ -20,18 +20,18 @@ Return the redis host. Return the redis password secret name. */}} {{- define "rasa-x.redis.password.secret" -}} -{{- default (include "redis.fullname" .) .Values.redis.existingSecret | quote -}} +{{- default (include "redis.fullname" .) .Values.redis.auth.existingSecret | quote -}} {{- end -}} {{/* Return the redis password secret key. */}} {{- define "rasa-x.redis.password.key" -}} - {{- if and .Values.redis.install .Values.redis.existingSecret -}} - {{- coalesce .Values.redis.existingSecretPasswordKey "redis-password" | quote -}} + {{- if and .Values.redis.install .Values.redis.auth.existingSecret -}} + {{- coalesce .Values.redis.auth.existingSecretPasswordKey "redis-password" | quote -}} {{- else if .Values.redis.install -}} "redis-password" {{- else -}} - {{- default "redis-password" .Values.redis.existingSecretPasswordKey | quote -}} + {{- default "redis-password" .Values.redis.auth.existingSecretPasswordKey | quote -}} {{- end -}} {{- end -}}