Merge pull request #1120 from dddddai/redundant-sort

Remove redundant sort in scale up schedule
This commit is contained in:
karmada-bot 2021-12-18 10:24:24 +08:00 committed by GitHub
commit 45f3aec63d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package core
import (
"fmt"
"sort"
"k8s.io/apimachinery/pkg/util/sets"
@ -223,7 +222,6 @@ func scaleUpScheduleByReplicaDivisionPreference(
// Step 3: Calculate available replicas of all candidates
clusterAvailableReplicas := calAvailableReplicas(clusters, newSpec)
sort.Sort(TargetClustersList(clusterAvailableReplicas))
// Step 4: Begin dividing.
// Only the new replicas are considered during this scheduler, the old replicas will not be moved.