style: trim whitespaces before {{include}}
This commit is contained in:
@ -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" -}}
|
||||
|
Reference in New Issue
Block a user