Remove pvcLister from genericScheduler

PVCLister can be fetched from sharedInformerFactory.
This commit is contained in:
Wei Huang
2020-07-06 15:40:10 -07:00
committed by Wei Huang
parent 1b8c7585f3
commit 42cfda2f94
6 changed files with 23 additions and 25 deletions

View File

@@ -272,6 +272,7 @@ func TestGenericSchedulerWithExtenders(t *testing.T) {
fwk, err := st.NewFramework(
test.registerPlugins,
runtime.WithClientSet(client),
runtime.WithInformerFactory(informerFactory),
runtime.WithPodNominator(internalqueue.NewPodNominator()),
)
if err != nil {
@@ -285,7 +286,6 @@ func TestGenericSchedulerWithExtenders(t *testing.T) {
cache,
emptySnapshot,
extenders,
informerFactory.Core().V1().PersistentVolumeClaims().Lister(),
schedulerapi.DefaultPercentageOfNodesToScore)
podIgnored := &v1.Pod{}
result, err := scheduler.Schedule(context.Background(), prof, framework.NewCycleState(), podIgnored)