Skip to content

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 milan.plzik@grafana.com

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 <milan.plzik@grafana.com>
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