Skip to content

Commit 4888ba8

Browse files
committed
Add "hello-world.chart" function again
1 parent 9448cfe commit 4888ba8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

charts/hello-world/templates/_helpers.tpl

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ If release name contains chart name it will be used as a full name.
2323
{{- end }}
2424
{{- end }}
2525

26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "hello-world.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
2633
{{/*
2734
Common labels
2835
*/}}

0 commit comments

Comments
 (0)