Change scheduler constructors to receive a plugin registry.

This commit is contained in:
Bobby (Babak) Salamat
2019-04-16 16:37:14 -07:00
parent 54afaf2326
commit 77824f5135
3 changed files with 6 additions and 1 deletions

View File

@@ -264,6 +264,7 @@ priorities: []
},
},
nil,
schedulerframework.NewRegistry(),
scheduler.WithName(v1.DefaultSchedulerName),
scheduler.WithHardPodAffinitySymmetricWeight(v1.DefaultHardPodAffinitySymmetricWeight),
scheduler.WithBindTimeoutSeconds(defaultBindTimeout),
@@ -332,6 +333,7 @@ func TestSchedulerCreationFromNonExistentConfigMap(t *testing.T) {
},
},
nil,
schedulerframework.NewRegistry(),
scheduler.WithName(v1.DefaultSchedulerName),
scheduler.WithHardPodAffinitySymmetricWeight(v1.DefaultHardPodAffinitySymmetricWeight),
scheduler.WithBindTimeoutSeconds(defaultBindTimeout))