-
Notifications
You must be signed in to change notification settings - Fork 594
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
feat: support admission.k8s.io/v1 alongside v1beta1 #759
Conversation
As discussed out of band, we need v1beta1 and v1 at the same time. BTW, nice work with table driven test refactoring here. |
This PR supports both versions, according to my understanding of the
Thanks! These are separate commits already. |
KIC admission webhook manually verified to work with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor comments but otherwise looks good.
Please take a look now @hbagdi. Added two new commits - to be autosquashed before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be autosquashed before merging.
This is not possible in Github UI, you either have squash and merge or rebase and merge. We want two commits and we will either get 1 or 4 if we do this via Github.
(Unless this is a magical Github feature that I'm missing).
84bf496
to
3dd5fd5
Compare
3dd5fd5
to
860e4a3
Compare
Done. |
What this PR does / why we need it:
This PR:
admission.k8s.io
APIs used by KIC tov1
fromv1beta1
. This PR assumes that av1
webhook is backwards compatible with av1beta1
apiserver as its caller. In other words, the webhook will accept bothv1beta1
andv1
requests.ValidationWebhookConfiguration
manifests to allowv1
APIs (k8s >= 1.16) alongsidev1beta1
.v1
tests alongsidev1beta1
without exponential code growthv1beta1
as well asv1
Which issue this PR fixes
fixes #678
Special notes for your reviewer:
Leaves
ValidationWebhookConfiguration
atv1beta1
for compatibility with k8s < 1.16. Added TODOs for a later cleanup.