summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/common/templates/_name.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/common/templates/_name.tpl')
-rw-r--r--kubernetes/common/common/templates/_name.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/common/common/templates/_name.tpl b/kubernetes/common/common/templates/_name.tpl
index 7719cdbb9f..943078ff2f 100644
--- a/kubernetes/common/common/templates/_name.tpl
+++ b/kubernetes/common/common/templates/_name.tpl
@@ -49,3 +49,7 @@
{{- define "common.release" -}}
{{- first (regexSplit "-" .Release.Name -1) }}
{{- end -}}
+
+{{- define "common.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
+{{- end -}}