delete some invalid logic in static weight strategy
Signed-off-by: huone1 <huwanxing@huawei.com>
This commit is contained in:
parent
0124797ad7
commit
6d8d68a72c
|
@ -97,12 +97,6 @@ func divideReplicasByStaticWeight(clusters []*clusterv1alpha1.Cluster, weightLis
|
|||
|
||||
divideRemainingReplicas(int(replicas-allocatedReplicas), desireReplicaInfos, clusterNames)
|
||||
|
||||
for _, cluster := range clusters {
|
||||
if _, exist := matchClusters[cluster.Name]; !exist {
|
||||
desireReplicaInfos[cluster.Name] = 0
|
||||
}
|
||||
}
|
||||
|
||||
targetClusters := make([]workv1alpha2.TargetCluster, len(desireReplicaInfos))
|
||||
i := 0
|
||||
for key, value := range desireReplicaInfos {
|
||||
|
|
Loading…
Reference in New Issue