fix: wrong removing space (#9)

This commit is contained in:
Wei-An Yen
2022-06-10 15:57:40 +08:00
committed by GitHub
parent 7284144b77
commit 54b4a74b85
4 changed files with 10 additions and 10 deletions

View File

@ -10,11 +10,11 @@ spec:
{{- $cronJob := index . 1 }}
{{- $pod := index . 2 }}
{{- $serviceAccount := index . 3 }}
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}}
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version }}
apiVersion: batch/v1
{{- else -}}
{{- else }}
apiVersion: batch/v1beta1
{{- end -}}
{{- end }}
kind: CronJob
metadata:
{{- include "common.metadata" (list $top) | nindent 2 }}