summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2020-02-02 13:20:30 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-02 13:20:30 +0000
commit7643b7c45ee95f722f21fc10e9ea19273fd0fdb4 (patch)
tree2877aec47002d88bd7f127094817dd7fa16e7537
parent3aa87a5a64a786b56d1c4242062ed1cecc6c6f3d (diff)
parentabeaed4822ecf2907617d6b56127b4ff1302ce30 (diff)
Merge "[COMMON] Allow to lint chart without master password"
-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 938b0ee514..8b2f1e274d 100644
--- a/kubernetes/common/common/templates/_createPassword.tpl
+++ b/kubernetes/common/common/templates/_createPassword.tpl
@@ -29,6 +29,9 @@
{{- printf "%d" .Values.global.masterPassword -}}
{{ else if .Values.masterPassword }}
{{- printf "%d" .Values.masterPassword -}}
+ {{ else if eq "testRelease" (include "common.release" .) }}
+ {{/* Special case for chart liniting. DON"T NAME YOUR PRODUCTION RELEASE testRelease */}}
+ {{- printf "testRelease" -}}
{{ else }}
{{ fail "masterPassword not provided" }}
{{ end }}