sched: retry unschedule pods immediately after a waiting pod's deletion

This commit is contained in:
Wei Huang
2021-07-19 15:46:55 -07:00
parent ebc87c39d3
commit dc079acc2b
8 changed files with 312 additions and 101 deletions

View File

@@ -456,6 +456,7 @@ func TestSchedulerScheduleOne(t *testing.T) {
Profiles: profile.Map{
testSchedulerName: fwk,
},
SchedulingQueue: internalqueue.NewTestQueue(context.Background(), nil),
}
called := make(chan struct{})
stopFunc := eventBroadcaster.StartEventWatcher(func(obj runtime.Object) {
@@ -946,7 +947,8 @@ func setupTestScheduler(queuedPodStore *clientcache.FIFO, scache internalcache.C
Profiles: profile.Map{
testSchedulerName: fwk,
},
client: client,
client: client,
SchedulingQueue: internalqueue.NewTestQueue(context.Background(), nil),
}
return sched, bindingChan, errChan