diff --git a/charts/hello-world/templates/_helpers.tpl b/charts/hello-world/templates/_helpers.tpl index 290abd9..8ce40d0 100644 --- a/charts/hello-world/templates/_helpers.tpl +++ b/charts/hello-world/templates/_helpers.tpl @@ -23,6 +23,13 @@ If release name contains chart name it will be used as a full name. {{- end }} {{- end }} +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "hello-world.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + {{/* Common labels */}}