mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Updating priority function weight based on specified configuration
This commit is contained in:
@@ -59,11 +59,11 @@ func defaultPriorities() util.StringSet {
|
||||
// spreads pods by minimizing the number of pods (belonging to the same service) on the same minion.
|
||||
factory.RegisterPriorityConfigFactory(
|
||||
"ServiceSpreadingPriority",
|
||||
func(args factory.PluginFactoryArgs) algorithm.PriorityConfig {
|
||||
return algorithm.PriorityConfig{
|
||||
Function: algorithm.NewServiceSpreadPriority(args.ServiceLister),
|
||||
Weight: 1,
|
||||
}
|
||||
factory.PriorityConfigFactory{
|
||||
Function: func(args factory.PluginFactoryArgs) algorithm.PriorityFunction {
|
||||
return algorithm.NewServiceSpreadPriority(args.ServiceLister)
|
||||
},
|
||||
Weight: 1,
|
||||
},
|
||||
),
|
||||
// EqualPriority is a prioritizer function that gives an equal weight of one to all minions
|
||||
|
||||
Reference in New Issue
Block a user