Skip to content

Commit d54ea7f

Browse files
committed
Update cronjob apiversion to batch/v1
The batch/v2alpha1 CronJob type definitions and clients are deprecated and removed in Kubernetes v1.21 Signed-off-by: Konstantin Misyutin <[email protected]>
1 parent db83578 commit d54ea7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Deploy Kubernetes in Kubernetes using Helm
66

77
## Requirements
88

9-
* Kubernetes v1.15+
9+
* Kubernetes v1.21+
1010
* Helm v3
1111
* cert-manager v1.0.0+
1212

deploy/helm/kubernetes/templates/etcd-backup-cronjob.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.etcd.backup.enabled }}
22
{{- $fullName := include "kubernetes.fullname" . -}}
33
---
4-
apiVersion: batch/v1beta1
4+
apiVersion: batch/v1
55
kind: CronJob
66
metadata:
77
name: {{ $fullName }}-etcd-backup

deploy/helm/kubernetes/templates/kubeadm-cronjob.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.admin.job.enabled }}
22
{{- $fullName := include "kubernetes.fullname" . -}}
33
---
4-
apiVersion: batch/v1beta1
4+
apiVersion: batch/v1
55
kind: CronJob
66
metadata:
77
name: "{{ $fullName }}-kubeadm-tasks"

0 commit comments

Comments
 (0)