Add defaults to pod affinity args
And remove pod affinity parameter from algorithm provider registry Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
@@ -165,13 +165,12 @@ func TestPriorityQueue_Add(t *testing.T) {
|
||||
}
|
||||
|
||||
func newDefaultFramework() framework.Framework {
|
||||
defaultCfg := algorithmprovider.NewRegistry(1)[schedulerapi.SchedulerDefaultProviderName]
|
||||
pl, pls := defaultCfg.FrameworkPlugins, defaultCfg.FrameworkPluginConfig
|
||||
plugins := algorithmprovider.NewRegistry()[schedulerapi.SchedulerDefaultProviderName]
|
||||
fakeClient := fake.NewSimpleClientset()
|
||||
fwk, err := framework.NewFramework(
|
||||
frameworkplugins.NewInTreeRegistry(),
|
||||
pl,
|
||||
pls,
|
||||
plugins,
|
||||
nil,
|
||||
framework.WithClientSet(fakeClient),
|
||||
framework.WithInformerFactory(informers.NewSharedInformerFactory(fakeClient, 0)),
|
||||
framework.WithSnapshotSharedLister(cache.NewEmptySnapshot()),
|
||||
|
||||
Reference in New Issue
Block a user