소스 검색

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

Waqar Ahmed 4 년 전
부모
커밋
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 }}