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:
name: {{ include "<CHARTNAME>.serviceAccountName" . }}
labels:
{{ include "<CHARTNAME>.labels" . | nindent 4 }}
{{- include "<CHARTNAME>.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@ -404,7 +404,7 @@ kind: Pod
metadata:
name: "{{ include "<CHARTNAME>.fullname" . }}-test-connection"
labels:
{{ include "<CHARTNAME>.labels" . | nindent 4 }}
{{- include "<CHARTNAME>.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test-success
spec:
@ -412,7 +412,7 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "<CHARTNAME>.fullname" . }}:{{ .Values.service.port }}']
args: ['{{ include "<CHARTNAME>.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
`

Loading…
Cancel
Save