[COMMON] Use lowercase in common.fullname during linting in helm3 23/113423/2
authorJakub Latusek <j.latusek@samsung.com>
Thu, 1 Oct 2020 12:00:47 +0000 (14:00 +0200)
committerJakub Latusek <j.latusek@samsung.com>
Mon, 12 Oct 2020 12:14:27 +0000 (12:14 +0000)
.Template.BasePath return <component_name>/templates during linting.

Signed-off-by: Jakub Latusek <j.latusek@samsung.com>
Issue-ID: OOM-2562
Change-Id: I9e44eca46334ac4c4d884f2aa71ad197283363a1

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) }}