aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/common/templates
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-09-18 07:00:03 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-18 07:00:03 +0000
commit7807a74160c82284caa977ec9f32ab24e4bc2f9c (patch)
treef27da8feebfa2cf19276e6a1bb6aa99396424f77 /kubernetes/common/common/templates
parent6a5cf9898f992ea29a932988717336a036d03228 (diff)
parentb0e340e90eadf96bc55b4c644682e3a3303d3a5d (diff)
Merge "Use lowercase in common.fullname during linting in helm3"
Diffstat (limited to 'kubernetes/common/common/templates')
-rw-r--r--kubernetes/common/common/templates/_name.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/common/common/templates/_name.tpl b/kubernetes/common/common/templates/_name.tpl
index e918cc1dd8..adbe2b6cf9 100644
--- a/kubernetes/common/common/templates/_name.tpl
+++ b/kubernetes/common/common/templates/_name.tpl
@@ -51,6 +51,11 @@
{{- $dot := default . .dot -}}
{{- $suffix := default "" .suffix -}}
{{- $name := default $dot.Chart.Name $dot.Values.nameOverride -}}
+ {{/* when linted, the name must be lower cased. When used from a component,
+ name should be overriden in order to avoid collision so no need to do it */}}
+ {{- if eq (printf "common/%s/templates" $name) $dot.Template.BasePath -}}
+ {{- $name = lower $name -}}
+ {{- end -}}
{{- include "common.fullnameExplicit" (dict "dot" $dot "chartName" $name "suffix" $suffix) }}
{{- end -}}