From 01603a00f51efbb6c1f20f72f656429f0ec3fca2 Mon Sep 17 00:00:00 2001 From: Jakub Latusek Date: Thu, 1 Oct 2020 14:00:47 +0200 Subject: [COMMON] Use lowercase in common.fullname during linting in helm3 .Template.BasePath return /templates during linting. Signed-off-by: Jakub Latusek Issue-ID: OOM-2562 Change-Id: I9e44eca46334ac4c4d884f2aa71ad197283363a1 --- kubernetes/common/common/templates/_name.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kubernetes') 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) }} -- cgit 1.2.3-korg