helpers: escape name

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
pull/8024/head
Yoan Blanc 6 years ago
parent 6fc9353056
commit 6bcc7fbb8d
No known key found for this signature in database
GPG Key ID: 6058CF4574298812

@ -66,7 +66,7 @@ const (
const sep = string(filepath.Separator)
const defaultChartfile = `apiVersion: v2
name: %s
name: %q
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
@ -435,7 +435,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
Selector labels
*/}}
{{- define "<CHARTNAME>.selectorLabels" -}}
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . | toJson }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

Loading…
Cancel
Save