Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Unable to locate user defined redis secret #281

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions charts/rasa-x/templates/_redis.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}