Merge pull request #92442 from tedyu/grace-period-with-map

Respect grace period when removing mirror pod
This commit is contained in:
Kubernetes Prow Robot
2020-07-10 17:49:23 -07:00
committed by GitHub
8 changed files with 279 additions and 37 deletions

View File

@@ -279,7 +279,7 @@ func newTestKubeletWithImageList(
fakeClock := clock.NewFakeClock(time.Now())
kubelet.backOff = flowcontrol.NewBackOff(time.Second, time.Minute)
kubelet.backOff.Clock = fakeClock
kubelet.podKillingCh = make(chan *kubecontainer.PodPair, 20)
kubelet.podKiller = NewPodKiller(kubelet)
kubelet.resyncInterval = 10 * time.Second
kubelet.workQueue = queue.NewBasicWorkQueue(fakeClock)
// Relist period does not affect the tests.