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

Fix CronJob API version compatibility issue #30

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

MatteoMori8
Copy link
Contributor

Previously, klint was checking for CronJob resources using the deprecated batch/v1beta1 API version. This caused an issue when running on Kubernetes clusters version 1.21 and later, where the CronJob resource has been moved to the batch/v1 API group.

The error we were encountering:

Failed to watch *v1beta1.CronJob: failed to list *v1beta1.CronJob: the server could not find the requested resource

This PR updates the code to use the correct batch/v1 API group for CronJob resources

@MatteoMori8 MatteoMori8 merged commit be6cbdc into master Jul 8, 2024
2 checks passed
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.

2 participants