mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 21:21:14 +00:00
Scheduler changes to allow multiple priority functions
This commit is contained in:
@@ -61,10 +61,7 @@ func main() {
|
||||
go http.ListenAndServe(net.JoinHostPort(address.String(), strconv.Itoa(*port)), nil)
|
||||
|
||||
configFactory := factory.NewConfigFactory(kubeClient)
|
||||
configFactory.AddPredicate("CreateOnMinion1", scheduler.CreateOnMinion1)
|
||||
configFactory.AddPredicate("CreateOnMinion2", scheduler.CreateOnMinion2)
|
||||
|
||||
config, err := configFactory.Create([]string{"CreateOnMinion2"}, nil)
|
||||
config, err := configFactory.Create(nil, nil)
|
||||
if err != nil {
|
||||
glog.Fatalf("Failed to create scheduler configuration: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user