diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-09-17 07:06:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-17 07:06:29 +0000 |
commit | b5d633dec8c49c9d757e18bf58d8bca32b7ace6a (patch) | |
tree | 3cad35c4531a3379db9e6ecc8de5c858b066c605 | |
parent | 76c05cc962b087cedb2b402eac542d4612e1e475 (diff) | |
parent | daa28bda95b3eb66f03c205b4c46d1c0f345e429 (diff) |
Merge "Use lowercase in secret name during helm3 linting"
-rw-r--r-- | kubernetes/common/common/templates/_secret.tpl | 4 |
1 files changed, 4 insertions, 0 deletions
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 -}} |