From 30d024225c0f42331a0901a1fd69ab6e70cfd5ae Mon Sep 17 00:00:00 2001 From: weian Date: Wed, 1 Jun 2022 16:03:33 +0800 Subject: [PATCH] fix: wrong common.fullname --- Chart.yaml | 2 +- templates/_name.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index fe562f6..7c04fa9 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,4 +14,4 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.4.1 +version: 0.4.2 diff --git a/templates/_name.tpl b/templates/_name.tpl index b06b6ad..52031c6 100644 --- a/templates/_name.tpl +++ b/templates/_name.tpl @@ -18,9 +18,9 @@ If release name contains chart name it will be used as a full name. {{- else }} {{- $name := default .Chart.Name .Values.nameOverride }} {{- if contains $name .Release.Name }} - {{- .Release.Name | trunc 63 | trimSuffix "-" }} - {{- else }} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} + {{- else }} + {{- .Release.Name | trunc 63 | trimSuffix "-" }} {{- end }} {{- end }} {{- end }}