From e08a2245db95eaad34813a85e6c927ff1809a05d Mon Sep 17 00:00:00 2001 From: Milan Plzik Date: Tue, 18 Jul 2023 13:26:22 +0200 Subject: [PATCH] Don't patch the `v1beta1` API version with CronJob patch. The `v1beta1` API has removed the `v1beta1` `CronJob` and hence, it doesn't make sense to apply the patch here. Since no other objects are being patched in the code, this PR takes the easy route of just removing the `v1beta` patch application. Note that this is mostly a cosmetic change -- using the the `v1beta1` `CronJob` with 1.25+ would fail anyway, but with a slightly confusing error message, e.g.: ``` evaluating jsonnet: RUNTIME ERROR: Attempt to use super when there is no super class. ``` Signed-off-by: Milan Plzik --- 1.25/_custom/batch.libsonnet | 1 - 1.26/_custom/batch.libsonnet | 1 - 1.27/_custom/batch.libsonnet | 1 - 3 files changed, 3 deletions(-) diff --git a/1.25/_custom/batch.libsonnet b/1.25/_custom/batch.libsonnet index 7004a7357d..fd6153bc54 100644 --- a/1.25/_custom/batch.libsonnet +++ b/1.25/_custom/batch.libsonnet @@ -22,7 +22,6 @@ local patch = { { batch+: { v1+: patch, - v1beta1+: patch, v2alpha1+: patch, }, } diff --git a/1.26/_custom/batch.libsonnet b/1.26/_custom/batch.libsonnet index 7004a7357d..fd6153bc54 100644 --- a/1.26/_custom/batch.libsonnet +++ b/1.26/_custom/batch.libsonnet @@ -22,7 +22,6 @@ local patch = { { batch+: { v1+: patch, - v1beta1+: patch, v2alpha1+: patch, }, } diff --git a/1.27/_custom/batch.libsonnet b/1.27/_custom/batch.libsonnet index 7004a7357d..fd6153bc54 100644 --- a/1.27/_custom/batch.libsonnet +++ b/1.27/_custom/batch.libsonnet @@ -22,7 +22,6 @@ local patch = { { batch+: { v1+: patch, - v1beta1+: patch, v2alpha1+: patch, }, }