Просмотр исходного кода

Properly render full name if name is a substring of release name

Waqar Ahmed 4 лет назад
Родитель
Сommit
15ef56b8f0
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      library/common/templates/lib/chart/_names.tpl

+ 2 - 1
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 }}