From daa28bda95b3eb66f03c205b4c46d1c0f345e429 Mon Sep 17 00:00:00 2001 From: Jakub Latusek Date: Mon, 14 Sep 2020 17:08:56 +0200 Subject: [PATCH] Use lowercase in secret name during helm3 linting Change-Id: I69b66828ba23db07c4885ae058e229a0af3e8df2 Signed-off-by: Jakub Latusek Issue-ID: OOM-2562 --- kubernetes/common/common/templates/_secret.tpl | 4 ++++ 1 file changed, 4 insertions(+) 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 -}} -- 2.16.6