summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorJakub Latusek <jk.latusek@gmail.com>2020-09-14 17:08:56 +0200
committerJakub Latusek <j.latusek@samsung.com>2020-09-15 17:45:11 +0200
commitdaa28bda95b3eb66f03c205b4c46d1c0f345e429 (patch)
tree9803f7d072fdcfbcd9fcf39278f7e0095a8efdb3 /kubernetes/common
parent27aae18cdee00c873e3617a6a3b5fb2d294b9b98 (diff)
Use lowercase in secret name during helm3 linting
Change-Id: I69b66828ba23db07c4885ae058e229a0af3e8df2 Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/common/templates/_secret.tpl4
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 -}}