Merge pull request #39826 from shyamjvs/fake-docker-client-fix

Automatic merge from submit-queue

Made tracing of calls and container lifecycle steps in FakeDockerClient optional

Fixes #39717 

Slightly refactored the FakeDockerClient code and made tracing optional (but enabled by default).

@yujuhong @Random-Liu
This commit is contained in:
Kubernetes Submit Queue
2017-01-17 21:11:36 -08:00
committed by GitHub
6 changed files with 98 additions and 46 deletions

View File

@@ -110,7 +110,7 @@ func main() {
cadvisorInterface := new(cadvisortest.Fake)
containerManager := cm.NewStubContainerManager()
fakeDockerClient := dockertools.NewFakeDockerClient()
fakeDockerClient := dockertools.NewFakeDockerClient().WithTraceDisabled()
fakeDockerClient.EnableSleep = true
hollowKubelet := kubemark.NewHollowKubelet(