work's replicas set to 0 while resource template' replicas >0 and rb.spec.cluster is not nil · Issue #6361 · karmada-io/karmada · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
To prevent extreme situations, when the number of replias of the resource template is zero in the scheduler, the number of replicas of the member cluster remains unchanged (implemented by a custom scheduler)
The problem is: now when workload.spec.replicas = 0, rb.spec.cluster > 0, the number of member cluster replicas all becomes zero;
Under normal circumstances, the number of member cluster replicas should be consistent with that in rb.spec.cluster, which is obviously not the case here
rb.spec.cluster
work object
Here only resource template replicas's >0, rb.spec.cluster will be merged to workload.
To prevent extreme situations, when the number of copies of the resource template is zero in the scheduler, the number of copies of the member cluster remains unchanged (implemented by a custom scheduler)
Does the number of copies mean number of replicas?
To prevent extreme situations, when the number of copies of the resource template is zero in the scheduler, the number of copies of the member cluster remains unchanged (implemented by a custom scheduler)
Does the number of copies mean number of replicas?
What happened:
To prevent extreme situations, when the number of replias of the resource template is zero in the scheduler, the number of replicas of the member cluster remains unchanged (implemented by a custom scheduler)
The problem is: now when workload.spec.replicas = 0, rb.spec.cluster > 0, the number of member cluster replicas all becomes zero;
Under normal circumstances, the number of member cluster replicas should be consistent with that in rb.spec.cluster, which is obviously not the case here
rb.spec.cluster

work object
Here only resource template replicas's >0, rb.spec.cluster will be merged to workload.
karmada/pkg/controllers/binding/common.go
Lines 70 to 77 in c5365b2
karmada/pkg/controllers/binding/common.go
Lines 315 to 317 in c5365b2
What you expected to happen:
work object's replias must same as rb.spec.cluster info
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: