From 4888ba8fb8180dd0c36d1e84c1fcafc6efd81532 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 3 Mar 2021 08:18:04 -0800 Subject: [PATCH] Add "hello-world.chart" function again --- charts/hello-world/templates/_helpers.tpl | 7 +++++++ 1 file changed, 7 insertions(+) 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 */}}