aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Latusek <j.latusek@samsung.com>2020-10-01 14:00:47 +0200
committerJakub Latusek <j.latusek@samsung.com>2020-10-12 12:14:27 +0000
commit01603a00f51efbb6c1f20f72f656429f0ec3fca2 (patch)
treea02884991d5e8be5714bcfd97a7708f2d32aabc6
parent089cd9d2843fd5da0f5b5ab8faf72126e1c704db (diff)
[COMMON] Use lowercase in common.fullname during linting in helm3
.Template.BasePath return <component_name>/templates during linting. Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562 Change-Id: I9e44eca46334ac4c4d884f2aa71ad197283363a1
-rw-r--r--kubernetes/common/common/templates/_name.tpl2
1 files changed, 1 insertions, 1 deletions
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) }}