Pre-pull images in node e2e-tests. Possible resolution for #24905

This commit is contained in:
Phillip Wittrock
2016-05-20 03:04:58 +00:00
parent 505fb85726
commit 839f4f8dd2
9 changed files with 121 additions and 58 deletions

View File

@@ -47,7 +47,7 @@ var _ = Describe("MirrorPod", func() {
mirrorPodName = staticPodName + "-" + e2es.nodeName
By("create the static pod")
err := createStaticPod(e2es.kubeletStaticPodDir, staticPodName, ns, "gcr.io/google_containers/nginx:1.7.9", api.RestartPolicyAlways)
err := createStaticPod(e2es.kubeletStaticPodDir, staticPodName, ns, ImageRegistry[nginxImage], api.RestartPolicyAlways)
Expect(err).ShouldNot(HaveOccurred())
By("wait for the mirror pod to be running")
@@ -62,7 +62,7 @@ var _ = Describe("MirrorPod", func() {
uid := pod.UID
By("update the static pod container image")
image := "gcr.io/google_containers/pause-amd64:3.0"
image := ImageRegistry[pauseImage]
err = createStaticPod(e2es.kubeletStaticPodDir, staticPodName, ns, image, api.RestartPolicyAlways)
Expect(err).ShouldNot(HaveOccurred())