make kubelet.HandlePodsDeletion aware of api.Pod

This commit is contained in:
Chao Xu
2016-01-31 15:56:55 -08:00
parent fdf6a0f61c
commit a6d96a04d0
3 changed files with 33 additions and 19 deletions

View File

@@ -176,7 +176,7 @@ func newTestKubelet(t *testing.T) *TestKubelet {
fakeClock := &util.FakeClock{Time: time.Now()}
kubelet.backOff = util.NewBackOff(time.Second, time.Minute)
kubelet.backOff.Clock = fakeClock
kubelet.podKillingCh = make(chan *kubecontainer.Pod, 20)
kubelet.podKillingCh = make(chan *kubecontainer.PodPair, 20)
kubelet.resyncInterval = 10 * time.Second
kubelet.reservation = kubetypes.Reservation{
Kubernetes: api.ResourceList{