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

Signed-off-by: sukimoyoi <alice89yryr0@gmail.com>
pull/7201/head
Shota Nakamura 5 years ago committed by Martin Hickey
parent 5e3c7d7eb8
commit 0beb9f7040

@ -304,7 +304,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 }}
@ -405,7 +405,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:
@ -413,7 +413,7 @@ spec:
- name: wget - name: wget
image: busybox image: busybox
command: ['wget'] command: ['wget']
args: ['{{ include "<CHARTNAME>.fullname" . }}:{{ .Values.service.port }}'] args: ['{{ include "<CHARTNAME>.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never restartPolicy: Never
` `

Loading…
Cancel
Save