Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't patch the v1beta1 API version with CronJob patch. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mplzik
Copy link

@mplzik mplzik commented Jul 18, 2023

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]

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant