fix: support batch/v1

This commit is contained in:
Markus Pesch 2021-09-26 17:12:59 +02:00
parent 3792eaa844
commit 1804368bec
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -1,4 +1,8 @@
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: batch/v1
{{- else -}}
apiVersion: batch/v1beta1
{{- end }}
kind: CronJob
metadata:
name: {{ include "postfixadmin-fetchmail.fullname" . }}