-
Notifications
You must be signed in to change notification settings - Fork 385
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 viploadbalancer controller #2036
base: master
Are you sure you want to change the base?
Conversation
b4323a2
to
6a6e532
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2036 +/- ##
==========================================
+ Coverage 55.62% 55.84% +0.21%
==========================================
Files 186 191 +5
Lines 18072 18436 +364
==========================================
+ Hits 10052 10295 +243
- Misses 6995 7079 +84
- Partials 1025 1062 +37
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
75e4110
to
77148c3
Compare
/hold |
f156534
to
963c247
Compare
/rerun |
/unhold |
/assign @rambohe-ch @zyjhtangtang @River-sh @Rui-Gan |
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/config/types.go
Outdated
Show resolved
Hide resolved
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/viploadbalancer_controller.go
Outdated
Show resolved
Hide resolved
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/viploadbalancer_controller.go
Outdated
Show resolved
Hide resolved
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/viploadbalancer_controller.go
Outdated
Show resolved
Hide resolved
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/viploadbalancer_controller.go
Show resolved
Hide resolved
) | ||
|
||
// Default satisfies the defaulting webhook interface. | ||
func (webhook *PoolServiceHandler) Default(ctx context.Context, obj runtime.Object) error { |
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.
I think that may be we need to add a Service Webhook, and add service topology annotation on Service instead of PoolService.
pkg/yurtmanager/controller/loadbalancerset/viploadbalancer/viploadbalancer_controller.go
Outdated
Show resolved
Hide resolved
I have updated the logic of syncPoolService to first synchronize the validly allocated vrids in the cluster first, which is used to support the user-specified mode of vrid deployment. In addition, we will perform unified allocation for unallocated or vrid exceptions, which include cases where the annotation of the vrid is null, the vrid is abnormal, and the vrid is out of range. This layer of logic will also be judged in reconcileDelete. |
5a22c72
to
9fbfb43
Compare
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
9fbfb43
to
9e138a0
Compare
…offline status Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
9e138a0
to
51b2104
Compare
/* | ||
Copyright 2024 The OpenYurt Authors. | ||
Licensed under the Apache License, Version 2.0 (the License); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an AS IS BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ |
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.
license comment is duplicated.
…vip-loadbalance Signed-off-by: wangxye <xuanyewang.cs@gmail.com>
242d2f6
to
38eba42
Compare
Quality Gate passedIssues Measures |
What type of PR is this?
/kind feature
What this PR does / why we need it:
As the second-level controller for the multi-region load balancer, It is used to support the control of high availability of virtual IP based edge services, monitor poolservice changes, and is used to synchronize vrid changes to the vip agent at the edge.
Special notes for your reviewer:
/assign @rambohe-ch @zyjhtangtang @River-sh @Rui-Gan
Does this PR introduce a user-facing change?
Support left-closed-right-open ip assignment: