Skip to content

Commit

Permalink
⬆️(apps) use batch/v1 api in cronjob manifests
Browse files Browse the repository at this point in the history
The batch/v1beta1 API is deprecated since kubernetes 1.21 and is removed
in version 1.25. We can upgrade the manifests to use the batch/v1 api now.
  • Loading branch information
lunika committed May 10, 2023
1 parent 8e9f35f commit 8051735
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
### Changed

- Upgrade `ansible` to `7.2.0`
- Use batch/v1 api in cronjob_pipeline manifest

## [6.16.0] - 2023-02-02

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion apps/hello/templates/services/app/cronjob_hello.yml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: "cronjob-hello-{{ deployment_stamp }}"
Expand Down
2 changes: 1 addition & 1 deletion apps/nextcloud/templates/services/app/cronjob_cron.yml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: nextcloud-cron-{{ deployment_stamp }}
Expand Down
2 changes: 1 addition & 1 deletion tasks/delete_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- { kind: "ReplicationController", api_version: "v1" }
- { kind: "StatefulSet", api_version: "v1" }
- { kind: "Job", api_version: "v1" }
- { kind: "CronJob", api_version: "v1beta1" }
- { kind: "CronJob", api_version: "v1" }
# Pods must be deleted after all kind of objects that can spawn new pods
- { kind: "Pod", api_version: "v1" }
- { kind: "Service", api_version: "v1" }
Expand Down

0 comments on commit 8051735

Please sign in to comment.