Skip to content

Commit

Permalink
Update cronjob apiversion to batch/v1
Browse files Browse the repository at this point in the history
The batch/v2alpha1 CronJob type definitions and clients are
deprecated and removed in Kubernetes v1.21

Signed-off-by: Konstantin Misyutin <[email protected]>
  • Loading branch information
ikeeip committed Dec 28, 2021
1 parent db83578 commit d54ea7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Deploy Kubernetes in Kubernetes using Helm

## Requirements

* Kubernetes v1.15+
* Kubernetes v1.21+
* Helm v3
* cert-manager v1.0.0+

Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/kubernetes/templates/etcd-backup-cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.etcd.backup.enabled }}
{{- $fullName := include "kubernetes.fullname" . -}}
---
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ $fullName }}-etcd-backup
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/kubernetes/templates/kubeadm-cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.admin.job.enabled }}
{{- $fullName := include "kubernetes.fullname" . -}}
---
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: "{{ $fullName }}-kubeadm-tasks"
Expand Down

0 comments on commit d54ea7f

Please sign in to comment.