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

Detect admission registration API version #4569

Merged
merged 4 commits into from
Jun 18, 2021

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Jun 15, 2021

Fix #4555

I rebased this PR on #4489 and tested it on the following environments:

  • OCP 3.11 with and without the admission controller enabled
  • EKS 1.16
  • GKE 1.18
  • Kind running K8S v1.22.0-alpha.3

Unit testing is limited to v1 because of the way the fake client returns errors when a resource is not found, I opened kubernetes/kubernetes#102872 to improve this.

@botelastic botelastic bot added the triage label Jun 15, 2021
@barkbay barkbay added the >bug Something isn't working label Jun 15, 2021
@botelastic botelastic bot removed the triage label Jun 15, 2021
@barkbay barkbay added the v1.7.0 label Jun 15, 2021
Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

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

LGTM! I did a few simple tests with kind and it looks good 👍

cmd/manager/main.go Outdated Show resolved Hide resolved
pkg/controller/webhook/admission_registration.go Outdated Show resolved Hide resolved
pkg/controller/webhook/admission_registration.go Outdated Show resolved Hide resolved
pkg/controller/webhook/admission_registration.go Outdated Show resolved Hide resolved
@barkbay barkbay merged commit db29820 into elastic:master Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v1.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhook certificate reconciliation relies on deprecated v1beta1 API
2 participants