From 8db130372d692bfcf79cdf0cbddc75667f2651fa Mon Sep 17 00:00:00 2001 From: Samuel Liu Date: Tue, 25 Apr 2023 17:05:21 +0800 Subject: [PATCH] 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 --- gnocchi/Chart.yaml | 2 +- gnocchi/templates/cron-job-resources-cleaner.yaml | 2 +- releasenotes/notes/gnocchi.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnocchi/Chart.yaml b/gnocchi/Chart.yaml index ff3ccb747..ca3f54812 100644 --- a/gnocchi/Chart.yaml +++ b/gnocchi/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v3.0.3 description: OpenStack-Helm Gnocchi name: gnocchi -version: 0.1.8 +version: 0.1.9 home: https://gnocchi.xyz/ icon: https://gnocchi.xyz/_static/gnocchi-logo.png sources: diff --git a/gnocchi/templates/cron-job-resources-cleaner.yaml b/gnocchi/templates/cron-job-resources-cleaner.yaml index 63eff0eac..608bab5ff 100644 --- a/gnocchi/templates/cron-job-resources-cleaner.yaml +++ b/gnocchi/templates/cron-job-resources-cleaner.yaml @@ -21,7 +21,7 @@ limitations under the License. {{- $serviceAccountName := "gnocchi-resources-cleaner" }} {{ tuple $envAll "resources_cleaner" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: name: gnocchi-resources-cleaner diff --git a/releasenotes/notes/gnocchi.yaml b/releasenotes/notes/gnocchi.yaml index 1581c8f48..824507eed 100644 --- a/releasenotes/notes/gnocchi.yaml +++ b/releasenotes/notes/gnocchi.yaml @@ -9,5 +9,5 @@ gnocchi: - 0.1.6 Update all Ceph images to Focal - 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.9 Migrated CronJob resource to batch/v1 API version ...