fix(chartutil): remove empty lines and a space from rendered chart templates (#7455)

Signed-off-by: sukimoyoi <alice89yryr0@gmail.com>
(cherry picked from commit 0beb9f7040)
release-3.0
Shota Nakamura 6 years ago committed by Matt Farina
parent d3836d6f74
commit ee8c924115
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -303,7 +303,7 @@ kind: ServiceAccount
metadata: metadata:
name: {{ include "<CHARTNAME>.serviceAccountName" . }} name: {{ include "<CHARTNAME>.serviceAccountName" . }}
labels: labels:
{{ include "<CHARTNAME>.labels" . | nindent 4 }} {{- include "<CHARTNAME>.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }} {{- with .Values.serviceAccount.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
@ -404,7 +404,7 @@ kind: Pod
metadata: metadata:
name: "{{ include "<CHARTNAME>.fullname" . }}-test-connection" name: "{{ include "<CHARTNAME>.fullname" . }}-test-connection"
labels: labels:
{{ include "<CHARTNAME>.labels" . | nindent 4 }} {{- include "<CHARTNAME>.labels" . | nindent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

Loading…
Cancel
Save