From: Sylvain Desbureaux Date: Thu, 15 Oct 2020 06:42:03 +0000 (+0000) Subject: Merge "[COMMON] Use lowercase in common.fullname during linting in helm3" X-Git-Tag: 7.0.0~132 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=9e8c6de3d71df6f7ed4338d935e9e1dcfe7ac06a;hp=207111a3269a3eeec1d18fa6e10e7b3045a1c55f Merge "[COMMON] Use lowercase in common.fullname during linting in helm3" --- diff --git a/kubernetes/common/common/templates/_name.tpl b/kubernetes/common/common/templates/_name.tpl index adbe2b6cf9..793fb3e07b 100644 --- a/kubernetes/common/common/templates/_name.tpl +++ b/kubernetes/common/common/templates/_name.tpl @@ -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) }}