diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index f4f83cc75..0606c3b78 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -97,7 +97,7 @@ kind: Deployment metadata: name: {{ template "fullname" . }} labels: - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" spec: replicas: {{ .Values.replicaCount }} template: @@ -128,7 +128,7 @@ kind: Service metadata: name: {{ template "fullname" . }} labels: - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" spec: type: {{ .Values.service.type }} ports: