-
Notifications
You must be signed in to change notification settings - Fork 295
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
✨ Add validating and mutating webhook for supervisor mode #2651
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2651 +/- ##
==========================================
- Coverage 65.48% 64.07% -1.42%
==========================================
Files 161 161
Lines 7525 9391 +1866
==========================================
+ Hits 4928 6017 +1089
- Misses 2134 2914 +780
+ Partials 463 460 -3 ☔ View full report in Codecov by Sentry. |
6749156
to
f7b286e
Compare
It's ready for a review. And I'll try to add some tests if possible to make codecov happy. |
Thanks, please ignore codecov, its not failing because of your PR, its the usual codecov flakyness when uploading the report 😭 |
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.
All in all great code :-)
Some nits.
All comments addressed, it's ready for another review :-) |
f7b286e
to
9be9e10
Compare
/test pull-cluster-api-provider-vsphere-test-main |
Once we have the manifests working. Let's please do one manual test with tilt/kind or something (with a real Kubernetes cluster not just unit tests) to verify the webhooks are really active. It's very easy to make a mistake somewhere (e.g. incorrect / missing webhook manifests, incorrect resource match in the webhook config, ...) |
Make sense to me, will run tilt to verify it and update result later. |
b512e4c
to
3ac090a
Compare
/test pull-cluster-api-provider-vsphere-test-integration-main |
3ac090a
to
29f365c
Compare
3456b2c
to
4506f71
Compare
Interesting that Prow shows us a job run from February :) https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-vsphere/2651/pull-cluster-api-provider-vsphere-test-integration-main/1759866415801700352 (we deleted the job since then, so let's ignore) |
/lgtm |
LGTM label has been added. Git tree hash: 0cbe2e1a85f3451505df183f9a362f7067af0325
|
/test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
/test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
This is nice :-) /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
/hold for some manual testing |
The govmomi test now failed 2 times in a row. I'm starting to think we broke something /test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
@zhanggbj: 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-sigs/prow repository. I understand the commands that are listed here. |
Okay 3 times in a row seems too often |
Checked the test artifacts, the failed cluster is
|
/test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
Same, but the job is 100% green on main. Let's see if it fails again. We might have to figure out why exactly the job is failing |
The one at |
Interesting... the flakes all failed at
|
Kk. Maybe just bad luck :) |
/test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
Let's run it 2-3 more times overall and if it looks better, then let's merge it (assuming the manual tests are also completed) |
Okay looking better, great :) /test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
/test pull-cluster-api-provider-vsphere-e2e-govmomi-main |
/hold cancel |
What this PR does / why we need it:
Add validating and mutating webhook for supervisor mode:
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 #2595