Skip to content

Commit

Permalink
Go imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed Aug 14, 2024
1 parent 18e8af6 commit f287669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scheduler/core/spreadconstraint/group_election.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"fmt"
"sort"

clusterV1alpha1 "github.com/karmada-io/karmada/pkg/apis/cluster/v1alpha1"
clusterv1alpha1 "github.com/karmada-io/karmada/pkg/apis/cluster/v1alpha1"
)

// Elect method to select clusters based on the required replicas
func (root *groupRoot) Elect() ([]*clusterV1alpha1.Cluster, error) {
func (root *groupRoot) Elect() ([]*clusterv1alpha1.Cluster, error) {
selects := make(map[string]*clusterDesc)
_, err := root.selectCluster(root.Replicas, selects)
if err != nil {
Expand All @@ -39,7 +39,7 @@ func (root *groupRoot) Elect() ([]*clusterV1alpha1.Cluster, error) {
return clusters[i].Score > clusters[j].Score
})

var result []*clusterV1alpha1.Cluster
var result []*clusterv1alpha1.Cluster
for _, cluster := range clusters {
result = append(result, cluster.Cluster)
}
Expand Down

0 comments on commit f287669

Please sign in to comment.