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

Update v1beta1 to v1 for webhook cert manager #558

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

kschoche
Copy link
Contributor

@kschoche kschoche commented Jul 9, 2021

Currently if you are running Kubernetes 1.19+ you will have the following logs flooding the the cert manager webhook:

W0709 18:25:22.612753       7 warnings.go:70] admissionregistration.k8s.io/v1beta1 MutatingWebhookConfiguration is deprecated in v1.16+, unavailable in v1.22+; use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration

Changes proposed in this PR:

  • Use clientset.AdmissionregistrationV1 instead of clientset.AdmissionregistrationV1beta1 API as it was deprecated in k8s 1.16.
  • Update tests accordingly.

How I've tested this PR:
manually deployed to k8s 1.20 and confirmed the warnings are gone
Unit tests updated and still pass.

How I expect reviewers to test this PR:
code review

Checklist:

  • Tests added
  • CHANGELOG entry added (HashiCorp engineers only, community PRs should not add a changelog entry)

@kschoche kschoche added the type/bug Something isn't working label Jul 9, 2021
@kschoche kschoche self-assigned this Jul 9, 2021
Copy link
Contributor

@thisisnotashwin thisisnotashwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done bud!

@kschoche kschoche merged commit e9d866d into master Jul 9, 2021
@kschoche kschoche deleted the remove_v1beta1_from_webhook branch July 9, 2021 19:05
@lkysow
Copy link
Member

lkysow commented Jul 9, 2021

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants