k8s-libsonnet
k8s-libsonnet copied to clipboard
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 [email protected]