From: Jakub Latusek Date: Mon, 14 Sep 2020 15:08:56 +0000 (+0200) Subject: Use lowercase in secret name during helm3 linting X-Git-Tag: 7.0.0~236^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=daa28bda95b3eb66f03c205b4c46d1c0f345e429;p=oom.git Use lowercase in secret name during helm3 linting Change-Id: I69b66828ba23db07c4885ae058e229a0af3e8df2 Signed-off-by: Jakub Latusek Issue-ID: OOM-2562 --- diff --git a/kubernetes/common/common/templates/_secret.tpl b/kubernetes/common/common/templates/_secret.tpl index 990c476f29..2490debffb 100644 --- a/kubernetes/common/common/templates/_secret.tpl +++ b/kubernetes/common/common/templates/_secret.tpl @@ -137,6 +137,10 @@ type: Opaque {{- $uid := (default "" .uid) }} {{- $name := (default "" .name) }} {{- $fullname := ne (default "" .chartName) "" | ternary (include "common.fullnameExplicit" (dict "dot" $global "chartName" .chartName)) (include "common.fullname" $global) }} + {{- if eq "test-release" $global.Release.Name -}} + {{/* Special case for chart liniting in helm3. DON"T NAME YOUR PRODUCTION RELEASE test-release */}} + {{- $uid = lower $uid -}} + {{- end -}} {{- default (printf "%s-%s" $fullname $uid) $name }} {{- end -}}