fix: wrong variable calling (#8)

This commit is contained in:
Wei-An Yen
2022-06-10 15:19:50 +08:00
committed by GitHub
parent 5d28270192
commit 7284144b77
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ spec:
{{- $cronJob := index . 1 }}
{{- $pod := index . 2 }}
{{- $serviceAccount := index . 3 }}
{{- if semverCompare ">=1.21.0" .Capabilities.KubeVersion.Version -}}
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}}
apiVersion: batch/v1
{{- else -}}
apiVersion: batch/v1beta1