-
Notifications
You must be signed in to change notification settings - Fork 890
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
Unexpected Setting Concurrency as 1 in Binding Status Controller #4339
Comments
Thank you for your patience. I understand the issue is the karmada/cmd/controller-manager/app/controllermanager.go Lines 164 to 169 in 01b086d
Nice catch! Please remind me if not the case. I'll get back to this later. |
#4340 has been merged. |
@XiShanYongYe-Chang: Closing this issue. In response to this:
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. |
What happened:
Because of missing
forType
inbinding-status controller
, the concurrency of the controller would be always set as 1.What you expected to happen:
The concurrency of
binding-status controller
could inherit from the concurrency ofbinding
declared in global options.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
If a controller is built WITHOUT concurrency options, AND it HAS a
forType
, the concurrency of the controller would inherit from the concurrency forforType
declared in global options.karmada/vendor/sigs.k8s.io/controller-runtime/pkg/builder/controller.go
Lines 354 to 370 in 01b086d
Up to now, all the concurrency of controllers in
Karmada
inherit from the global options. And all controllers exceptbinding-status controller
has aforType
. So onlybinding-status controller
would has a concurrency as1
.There are two ways to solve the problem:
forType
with a fake predicate to inherit concurrency from global options and keep the same performance at the same time.binding-status controller
.This problem occurs after we seprate
binding-status controller
frombinding controller
. On the latestmaster
branch, this problem is fixed after the #4138 coincidentally, but in the earlier version it still exists.It might be hard to cherry-pick #4138 straightly because it seems a fix for feature
hpaReplicasSyncer
, that might not necessary in earlier version.I would try to raise a PR to solve it in first way soon. But it would bring differences on commit history between
master
branch and other branches of eralier version, I wonder if it is acceptable, or what the recommend way is.Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: