Move ComputePodChanges to DockerManager.

This logic is specific to the Docker runtime. This move is the first
step towards making syncPod() runtime-agnostic.
This commit is contained in:
Victor Marmol
2015-04-28 17:51:21 -07:00
parent 134e585195
commit fe4600ba17
10 changed files with 245 additions and 195 deletions

View File

@@ -28,6 +28,7 @@ import (
kubecontainer "github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/container"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/dockertools"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/network"
kubeletProber "github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/prober"
docker "github.com/fsouza/go-dockerclient"
cadvisorApi "github.com/google/cadvisor/info/v1"
)
@@ -158,7 +159,8 @@ func TestRunOnce(t *testing.T) {
0,
"",
kubecontainer.FakeOS{},
kb.networkPlugin)
kb.networkPlugin,
&kubeletProber.FakeProber{})
kb.containerManager.Puller = &dockertools.FakeDockerPuller{}
pods := []*api.Pod{