aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/common/templates/_createPassword.tpl
diff options
context:
space:
mode:
authorJakub Latusek <j.latusek@samsung.com>2020-09-14 16:37:36 +0200
committerJakub Latusek <j.latusek@samsung.com>2020-09-15 16:16:12 +0200
commit0f8c3f1551f72569b0794e894ce6df0c47d72645 (patch)
tree7d687b163fc76c2942e30631092f0f5293793d13 /kubernetes/common/common/templates/_createPassword.tpl
parent27aae18cdee00c873e3617a6a3b5fb2d294b9b98 (diff)
Use default password during linting in helm3
Helm3 change release name during linting to test-release Change-Id: Iabc6fc8cd0c9bb6d707d1432d4b9cadaabbbc97e Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562
Diffstat (limited to 'kubernetes/common/common/templates/_createPassword.tpl')
-rw-r--r--kubernetes/common/common/templates/_createPassword.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/kubernetes/common/common/templates/_createPassword.tpl b/kubernetes/common/common/templates/_createPassword.tpl
index bfa96daf64..bfd0999e16 100644
--- a/kubernetes/common/common/templates/_createPassword.tpl
+++ b/kubernetes/common/common/templates/_createPassword.tpl
@@ -32,6 +32,9 @@
{{ else if eq "testRelease" (include "common.release" .) }}
{{/* Special case for chart liniting. DON"T NAME YOUR PRODUCTION RELEASE testRelease */}}
{{- printf "testRelease" -}}
+ {{ else if eq "test-release" .Release.Name }}
+ {{/* Special case for chart linting in helm3. DON"T NAME YOUR PRODUCTION RELEASE test-release */}}
+ {{- printf "testRelease" -}}
{{ else }}
{{ fail "masterPassword not provided" }}
{{ end }}