Update CronJob to use k8s 1.25 supported API version

The batch/v1beta1 API version of CronJob is no longer served as of v1.25.
Migrate API clients to use the batch/v1 API version instead which is
available since 1.21.

Test Plan:
PASS: Apply oidc-auth-apps and verify that "secret-observer" helm chart
      is being modified and loaded.
PASS: Verify that batch/v1 API version is being used

Story: 2010368
Task: 47289

Signed-off-by: Sachin Gopala Krishna <saching.krishna@windriver.com>
Change-Id: I5fdb0699b16f4b94a4bccab20b31b06fe4de952c
This commit is contained in:
Sachin Gopala Krishna 2023-02-07 00:13:18 -05:00
parent 77c3ec2280
commit 8faaed58c3

View File

@ -6,7 +6,7 @@
#
*/}}
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: secret-observer-cron-job