Migrated CronJob resource to batch/v1 API version

Migrate manifests and API clients to use the batch/v1 API version, available since v1.21.
The batch/v1beta1 API version of CronJob is no longer served as of v1.25.

ref: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#cronjob-v125

Change-Id: I4b80b6a85be5f117d8513710c6a248639ea81edf
This commit is contained in:
Samuel Liu 2023-04-25 17:05:21 +08:00 committed by Vladimir Kozhukalov
parent 3e28b8b3ca
commit 8db130372d
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v3.0.3 appVersion: v3.0.3
description: OpenStack-Helm Gnocchi description: OpenStack-Helm Gnocchi
name: gnocchi name: gnocchi
version: 0.1.8 version: 0.1.9
home: https://gnocchi.xyz/ home: https://gnocchi.xyz/
icon: https://gnocchi.xyz/_static/gnocchi-logo.png icon: https://gnocchi.xyz/_static/gnocchi-logo.png
sources: sources:

View File

@ -21,7 +21,7 @@ limitations under the License.
{{- $serviceAccountName := "gnocchi-resources-cleaner" }} {{- $serviceAccountName := "gnocchi-resources-cleaner" }}
{{ tuple $envAll "resources_cleaner" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} {{ tuple $envAll "resources_cleaner" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
--- ---
apiVersion: batch/v1beta1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
name: gnocchi-resources-cleaner name: gnocchi-resources-cleaner

View File

@ -9,5 +9,5 @@ gnocchi:
- 0.1.6 Update all Ceph images to Focal - 0.1.6 Update all Ceph images to Focal
- 0.1.7 Replace node-role.kubernetes.io/master with control-plane - 0.1.7 Replace node-role.kubernetes.io/master with control-plane
- 0.1.8 Migrated pdb resource to policy/v1 API version - 0.1.8 Migrated pdb resource to policy/v1 API version
- 0.1.9 Migrated CronJob resource to batch/v1 API version
... ...