feat: bump resource api version (#7)

This commit is contained in:
Wei-An Yen
2022-06-10 14:56:01 +08:00
committed by GitHub
parent 7e70dd23e5
commit 5d28270192
5 changed files with 16 additions and 2 deletions

View File

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