Merge "[COMMON] Use lowercase in common.fullname during linting in helm3"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 15 Oct 2020 06:42:03 +0000 (06:42 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 15 Oct 2020 06:42:03 +0000 (06:42 +0000)
kubernetes/common/common/templates/_name.tpl

index adbe2b6..793fb3e 100644 (file)
@@ -53,7 +53,7 @@
   {{- $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 -}}
+  {{- if eq (printf "%s/templates" $name) $dot.Template.BasePath -}}
   {{- $name = lower $name -}}
   {{- end -}}
   {{- include "common.fullnameExplicit" (dict "dot" $dot "chartName" $name "suffix" $suffix) }}