github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/chart-with-template-lib-dep/charts/common/templates/_chartref.tpl (about) 1 {{- /* 2 common.chartref prints a chart name and version. 3 4 It does minimal escaping for use in Kubernetes labels. 5 6 Example output: 7 8 zookeeper-1.2.3 9 wordpress-3.2.1_20170219 10 11 */ -}} 12 {{- define "common.chartref" -}} 13 {{- replace "+" "_" .Chart.Version | printf "%s-%s" .Chart.Name -}} 14 {{- end -}}