From 2fe0d4da27558023acd768095de2ec29cfd7eb62 Mon Sep 17 00:00:00 2001 From: draveness Date: Mon, 8 Jul 2019 14:35:30 +0800 Subject: [PATCH] fix: use schedulerCache instead of podlister in config factory --- pkg/scheduler/factory/factory.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/scheduler/factory/factory.go b/pkg/scheduler/factory/factory.go index 3a2e5a0fc9d..572b99ec50e 100644 --- a/pkg/scheduler/factory/factory.go +++ b/pkg/scheduler/factory/factory.go @@ -167,8 +167,6 @@ type configFactory struct { client clientset.Interface // a means to list all known scheduled pods. scheduledPodLister corelisters.PodLister - // a means to list all known scheduled pods and pods assumed to have been scheduled. - podLister algorithm.PodLister // a means to list all nodes nodeLister corelisters.NodeLister // a means to list all PersistentVolumes @@ -279,7 +277,6 @@ func NewConfigFactory(args *ConfigFactoryArgs) Configurator { c := &configFactory{ client: args.Client, - podLister: schedulerCache, podQueue: internalqueue.NewSchedulingQueue(stopEverything, framework), nodeLister: args.NodeInformer.Lister(), pVLister: args.PvInformer.Lister(), @@ -569,7 +566,7 @@ func (c *configFactory) GetPredicates(predicateKeys sets.String) (map[string]pre func (c *configFactory) getPluginArgs() (*PluginFactoryArgs, error) { return &PluginFactoryArgs{ - PodLister: c.podLister, + PodLister: c.schedulerCache, ServiceLister: c.serviceLister, ControllerLister: c.controllerLister, ReplicaSetLister: c.replicaSetLister,