-
Notifications
You must be signed in to change notification settings - Fork 94
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
🐛: remove managedclustersetbinding v1beta1 in webhook. #316
🐛: remove managedclustersetbinding v1beta1 in webhook. #316
Conversation
01c5a13
to
b4330d9
Compare
@@ -22,6 +22,6 @@ webhooks: | |||
- v1beta2 | |||
resources: | |||
- managedclustersetbindings | |||
admissionReviewVersions: ["v1beta1","v1"] | |||
admissionReviewVersions: ["v1beta2","v1"] |
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.
seems the admissionReviewVersions is not related to the to-be-validated resources version? Not sure if we should change this.
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.
In fact, this list is not used in our customized webhook logic, the only field we leverage is UserInfo:
return nil, AllowBindingToClusterSet(b.kubeClient, binding.Spec.ClusterSet, req.UserInfo) |
So in this configuration, we can put any version for example "v2". We change it to v1beta2 just to aglin with our version migration progress.
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.
this is the version of admissionReview, not the version of crd.
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.
this should not be changed to v1beta2
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.
Got it, changed back.
fbbd9fe
to
98a8d86
Compare
/assign @zhujian7 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #316 +/- ##
=======================================
Coverage 61.78% 61.78%
=======================================
Files 132 132
Lines 13983 13983
=======================================
Hits 8640 8640
+ Misses 4579 4578 -1
- Partials 764 765 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
98a8d86
to
95d7924
Compare
/assign @qiujian16 |
Signed-off-by: xuezhaojun <zxue@redhat.com>
95d7924
to
4a4986a
Compare
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, xuezhaojun 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 |
a46086d
into
open-cluster-management-io:main
Summary
We have split the webhook configuration of managedclustersetbinding to 2 configs in this PR: open-cluster-management-io/registration-operator#293
The previous release are not affected and all functionalities are fine, just remove v1beta1 content to make versions more clear.
Related issue(s)
Fixes #