-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Move Kubeadm API v1beta1 webhooks to separate package #9410
🌱 Move Kubeadm API v1beta1 webhooks to separate package #9410
Conversation
Welcome @odvarkadaniel! |
Hi @odvarkadaniel. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area api |
68d90d2
to
b0fccd4
Compare
About to move |
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.
Thanks!
/ok-to-test
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.
Changes look as expected, if we can work out the verify failures then this should be good to go, thanks for picking this up @odvarkadaniel
Any idea about the verify issues? Command |
The generate command regenerates everything. Once you've done that and committed the result - which should be relatively small as the vast majority of files won't change - you should be able to pass the |
fb080c3
to
e752c0f
Compare
3bfab57
to
dbc9f61
Compare
/assign @killianmuldoon @chrischdi Would be good if one of you can also take a look. I think this is the most complicated of the webhook refactorings, so want to make sure we don't introduce bugs |
b753064
to
dd1e6be
Compare
Addressed the 2 nits you mentioned above. Also squashed all the commits. |
Thank you very much!!! /lgtm |
LGTM label has been added. Git tree hash: 795970522f608c22064def6b8cd46aab045483b8
|
controlplane/kubeadm/internal/webhooks/kubeadm_control_plane_test.go
Outdated
Show resolved
Hide resolved
…to separate package
dd1e6be
to
359f92e
Compare
Wow, that was quick /lgtm |
LGTM label has been added. Git tree hash: 390e6b7f0045fc0dbd29460a9da1de8727b220e1
|
@odvarkadaniel: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@odvarkadaniel Thank you very much! That was one of the trickiest :) Thx everyone for the reviews as well! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
To work towards #9011, we need to remove the reliance on controller-runtime from the API packages.
This updates the webhooks to use the CustomDefaulter and CustomValidator pattern and moves them to match the Cluster and ClusterClass webhooks. This Is a more major lift but removes quite a bit of the code from the API package itself, making it's reliance on controller-runtime a lot smaller.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #