diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index aa380588e..1481c5ac7 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -269,7 +269,7 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: {{ .Chart.Name | toJson }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"