From 939b634304ef5f1e82d3ca5580a96ea2c4a1551b Mon Sep 17 00:00:00 2001 From: Uros Bajzelj Date: Wed, 24 Apr 2024 10:32:08 +0200 Subject: [PATCH] Fix the redis secrets --- charts/nautobot/templates/_helpers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/nautobot/templates/_helpers.tpl b/charts/nautobot/templates/_helpers.tpl index 5a8f3892..7454c8f7 100644 --- a/charts/nautobot/templates/_helpers.tpl +++ b/charts/nautobot/templates/_helpers.tpl @@ -269,8 +269,10 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- .Values.nautobot.redis.existingSecret -}} {{- else if .Values.redis.auth.existingSecret -}} {{- .Values.redis.auth.existingSecret -}} + {{- else if .Values.redis.nameOverride -}} + {{- printf "%s-%s" .Release.Name .Values.redis.nameOverride -}} {{- else -}} - {{- printf "nautobot-redis" -}} + {{- printf "%s-redis" .Release.Name -}} {{- end -}} {{- end -}}