Skip to content

Commit

Permalink
Removing EqualPriority from the list of default priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Gupta committed Mar 30, 2015
1 parent c03b0ec commit 08a0563
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ import (

func init() {
factory.RegisterAlgorithmProvider(factory.DefaultProvider, defaultPredicates(), defaultPriorities())
// EqualPriority is a prioritizer function that gives an equal weight of one to all minions
// Register the priority function so that its available
// but do not include it as part of the default priorities
factory.RegisterPriorityFunction("EqualPriority", algorithm.EqualPriority, 1)
}

func defaultPredicates() util.StringSet {
Expand Down Expand Up @@ -66,7 +70,5 @@ func defaultPriorities() util.StringSet {
Weight: 1,
},
),
// EqualPriority is a prioritizer function that gives an equal weight of one to all minions
factory.RegisterPriorityFunction("EqualPriority", algorithm.EqualPriority, 0),
)
}

0 comments on commit 08a0563

Please sign in to comment.