mirror of
https://github.com/helm/helm.git
synced 2026-02-13 15:55:03 -05:00
14 lines
298 B
Smarty
14 lines
298 B
Smarty
{{- /*
|
|
common.chartref prints a chart name and version.
|
|
|
|
It does minimal escaping for use in Kubernetes labels.
|
|
|
|
Example output:
|
|
|
|
zookeeper-1.2.3
|
|
wordpress-3.2.1_20170219
|
|
|
|
*/ -}}
|
|
{{- define "common.chartref" -}}
|
|
{{- replace "+" "_" .Chart.Version | printf "%s-%s" .Chart.Name -}}
|
|
{{- end -}}
|