k8s-libsonnet icon indicating copy to clipboard operation
k8s-libsonnet copied to clipboard

Don't patch the `v1beta1` API version with CronJob patch.

Open mplzik opened this issue 1 year ago • 0 comments

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 [email protected]

mplzik avatar Jul 18 '23 11:07 mplzik