style: trim whitespaces before {{include}}

This commit is contained in:
Chi-En Wu
2020-04-22 12:23:57 +08:00
parent cf0679333c
commit de752b0fb1
11 changed files with 16 additions and 16 deletions

View File

@ -12,7 +12,7 @@ spec:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
{{ include "common.metadata" (list $top) | nindent 2 }}
{{- include "common.metadata" (list $top) | nindent 2 }}
spec:
schedule: "{{ $cronJob.schedule }}"
{{- with $cronJob.concurrencyPolicy }}
@ -27,10 +27,10 @@ spec:
jobTemplate:
metadata:
labels:
{{ include "common.selectorLabels" $top | nindent 8 }}
{{- include "common.selectorLabels" $top | nindent 8 }}
spec:
template:
{{ include "common.pod.template" (list $top $pod "common.cronJob.pod") | nindent 8 }}
{{- include "common.pod.template" (list $top $pod "common.cronJob.pod") | nindent 8 }}
{{- end -}}
{{- define "common.cronJob" -}}