Merge pull request #12648 from samsabed/crashloop

back off restarts of crashlooping containers
This commit is contained in:
Nikhil Jindal
2015-08-24 18:54:13 -07:00
14 changed files with 505 additions and 34 deletions

View File

@@ -129,6 +129,9 @@ func newTestKubelet(t *testing.T) *TestKubelet {
kubelet.volumeManager = newVolumeManager()
kubelet.containerManager, _ = newContainerManager(mockCadvisor, "", "", "")
kubelet.networkConfigured = true
fakeClock := &util.FakeClock{Time: time.Now()}
kubelet.backOff = util.NewBackOff(time.Second, time.Minute)
kubelet.backOff.Clock = fakeClock
return &TestKubelet{kubelet, fakeRuntime, mockCadvisor, fakeKubeClient, fakeMirrorClient}
}