Merge "[COMMON] Allow to lint chart without master password"
authorBorislav Glozman <Borislav.Glozman@amdocs.com>
Sun, 2 Feb 2020 13:20:30 +0000 (13:20 +0000)
committerGerrit Code Review <gerrit@onap.org>
Sun, 2 Feb 2020 13:20:30 +0000 (13:20 +0000)
kubernetes/common/common/templates/_createPassword.tpl

index 938b0ee..8b2f1e2 100644 (file)
@@ -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 }}