From 9681bd5f932ebdece3d5caf1cb5b442cded37cfa Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 7 Feb 2024 16:54:10 +0100 Subject: [PATCH] fix: don't show password warning if the component is disabled --- templates/NOTES.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/NOTES.txt b/templates/NOTES.txt index ff26907..3139d83 100644 --- a/templates/NOTES.txt +++ b/templates/NOTES.txt @@ -4,15 +4,15 @@ WARNING: You are using the default password for {{ . }}. {{ printf "\033[0m" -}} {{- end }} -{{- if eq .Values.redis.auth.password "jitsu" }} +{{- if and .Values.redis.enabled (eq .Values.redis.auth.password "jitsu") }} {{- $warned = true }} {{- include "jitsu.warn-default-password" "Redis" }} {{- end }} -{{- if eq .Values.postgresql.auth.password "jitsu" }} +{{- if and .Values.postgresql.enabled (eq .Values.postgresql.auth.password "jitsu") }} {{- $warned = true }} {{- include "jitsu.warn-default-password" "PostgreSQL" }} {{- end }} -{{- if eq (index .Values.mongodb.auth.passwords 0) "jitsu" }} +{{- if and .Values.mongodb.enabled (eq (index .Values.mongodb.auth.passwords 0) "jitsu") }} {{- $warned = true }} {{- include "jitsu.warn-default-password" "MongoDB" }} {{- end }}