From 15ef56b8f045bd91940c57e6e342bbb12f607de0 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Sun, 31 Jan 2021 16:00:33 +0500 Subject: [PATCH] Properly render full name if name is a substring of release name --- library/common/templates/lib/chart/_names.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/common/templates/lib/chart/_names.tpl b/library/common/templates/lib/chart/_names.tpl index 707f24563e..04922f75ba 100644 --- a/library/common/templates/lib/chart/_names.tpl +++ b/library/common/templates/lib/chart/_names.tpl @@ -27,8 +27,9 @@ If release name contains chart name it will be used as a full name. {{- if contains $name .Release.Name }} {{- $name = (.Release.Name | trunc 63 | trimSuffix "-") }} {{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- $name = (printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-") }} {{- end }} +{{- print $name -}} {{- end }} {{- end }}