fix: support batch/v1
This commit is contained in:
parent
3792eaa844
commit
1804368bec
@ -1,4 +1,8 @@
|
|||||||
|
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: batch/v1
|
||||||
|
{{- else -}}
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
|
{{- end }}
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "postfixadmin-fetchmail.fullname" . }}
|
name: {{ include "postfixadmin-fetchmail.fullname" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user