delete some invalid logic in static weight strategy

Signed-off-by: huone1 <huwanxing@huawei.com>
This commit is contained in:
huone1 2022-02-19 15:33:02 +08:00
parent 0124797ad7
commit 6d8d68a72c
1 changed files with 0 additions and 6 deletions

View File

@ -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 {