Merge pull request #20837 from yujuhong/pull_images

e2e: use the tagged busybox image to avoid unnecessary pulling
This commit is contained in:
Dawn Chen 2016-02-08 16:15:29 -08:00
commit 242000d790
14 changed files with 23 additions and 23 deletions

View File

@ -62,7 +62,7 @@ var _ = Describe("ConfigMap", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "env-test", Name: "env-test",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "env"}, Command: []string{"sh", "-c", "env"},
Env: []api.EnvVar{ Env: []api.EnvVar{
{ {

View File

@ -91,7 +91,7 @@ func testDownwardAPI(framework *Framework, podName string, env []api.EnvVar, exp
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "dapi-container", Name: "dapi-container",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "env"}, Command: []string{"sh", "-c", "env"},
Env: env, Env: env,
}, },

View File

@ -37,7 +37,7 @@ var _ = Describe("Variable Expansion", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "dapi-container", Name: "dapi-container",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "env"}, Command: []string{"sh", "-c", "env"},
Env: []api.EnvVar{ Env: []api.EnvVar{
{ {
@ -77,7 +77,7 @@ var _ = Describe("Variable Expansion", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "dapi-container", Name: "dapi-container",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "TEST_VAR=wrong echo \"$(TEST_VAR)\""}, Command: []string{"sh", "-c", "TEST_VAR=wrong echo \"$(TEST_VAR)\""},
Env: []api.EnvVar{ Env: []api.EnvVar{
{ {
@ -107,7 +107,7 @@ var _ = Describe("Variable Expansion", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "dapi-container", Name: "dapi-container",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c"}, Command: []string{"sh", "-c"},
Args: []string{"TEST_VAR=wrong echo \"$(TEST_VAR)\""}, Args: []string{"TEST_VAR=wrong echo \"$(TEST_VAR)\""},
Env: []api.EnvVar{ Env: []api.EnvVar{

View File

@ -73,7 +73,7 @@ func createTerminatingPod(f *Framework) (*api.Pod, error) {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: string(uuid), Name: string(uuid),
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
}, },
}, },
}, },

View File

@ -223,7 +223,7 @@ func newTestJob(behavior, name string, rPol api.RestartPolicy, parallelism, comp
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "c", Name: "c",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{}, Command: []string{},
VolumeMounts: []api.VolumeMount{ VolumeMounts: []api.VolumeMount{
{ {

View File

@ -64,7 +64,7 @@ var _ = Describe("Networking", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: contName, Name: contName,
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"wget", "-s", "google.com"}, Command: []string{"wget", "-s", "google.com"},
}, },
}, },

View File

@ -396,7 +396,7 @@ func testPDPod(diskNames []string, targetHost string, readOnly bool, numContaine
containers[i].Name = fmt.Sprintf("mycontainer%v", i+1) containers[i].Name = fmt.Sprintf("mycontainer%v", i+1)
} }
containers[i].Image = "gcr.io/google_containers/busybox" containers[i].Image = "gcr.io/google_containers/busybox:1.24"
containers[i].Command = []string{"sleep", "6000"} containers[i].Command = []string{"sleep", "6000"}

View File

@ -162,7 +162,7 @@ func makeCheckPod(ns string, nfsserver string) *api.Pod {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "scrub-checker", Name: "scrub-checker",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh"}, Command: []string{"/bin/sh"},
Args: []string{"-c", "test ! -e /mnt/index.html || exit 1"}, Args: []string{"-c", "test ! -e /mnt/index.html || exit 1"},
VolumeMounts: []api.VolumeMount{ VolumeMounts: []api.VolumeMount{

View File

@ -618,7 +618,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "env3cont", Name: "env3cont",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "env"}, Command: []string{"sh", "-c", "env"},
}, },
}, },
@ -647,7 +647,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "liveness", Name: "liveness",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 10; rm -rf /tmp/health; sleep 600"}, Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 10; rm -rf /tmp/health; sleep 600"},
LivenessProbe: &api.Probe{ LivenessProbe: &api.Probe{
Handler: api.Handler{ Handler: api.Handler{
@ -674,7 +674,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "liveness", Name: "liveness",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 600"}, Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 600"},
LivenessProbe: &api.Probe{ LivenessProbe: &api.Probe{
Handler: api.Handler{ Handler: api.Handler{
@ -800,7 +800,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "main", Name: "main",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 600"}, Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 600"},
}, },
}, },
@ -879,7 +879,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "main", Name: "main",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 600"}, Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 600"},
}, },
}, },
@ -944,7 +944,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: containerName, Name: containerName,
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "sleep 5", "/crash/missing"}, Command: []string{"/bin/sh", "-c", "sleep 5", "/crash/missing"},
}, },
}, },
@ -995,7 +995,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: containerName, Name: containerName,
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 5; rm -rf /tmp/health; sleep 600"}, Command: []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 5; rm -rf /tmp/health; sleep 600"},
LivenessProbe: &api.Probe{ LivenessProbe: &api.Probe{
Handler: api.Handler{ Handler: api.Handler{
@ -1036,7 +1036,7 @@ var _ = Describe("Pods", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: containerName, Name: containerName,
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh", "-c", "sleep 5", "/crash/missing"}, Command: []string{"/bin/sh", "-c", "sleep 5", "/crash/missing"},
}, },
}, },

View File

@ -76,7 +76,7 @@ func testPreStop(c *client.Client, ns string) {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "tester", Name: "tester",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sleep", "600"}, Command: []string{"sleep", "600"},
Lifecycle: &api.Lifecycle{ Lifecycle: &api.Lifecycle{
PreStop: &api.Handler{ PreStop: &api.Handler{

View File

@ -131,7 +131,7 @@ var _ = Describe("Secrets", func() {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "secret-env-test", Name: "secret-env-test",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "env"}, Command: []string{"sh", "-c", "env"},
Env: []api.EnvVar{ Env: []api.EnvVar{
{ {

View File

@ -47,7 +47,7 @@ func scTestPod(hostIPC bool, hostPID bool) *api.Pod {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "test-container", Name: "test-container",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
}, },
}, },
RestartPolicy: api.RestartPolicyNever, RestartPolicy: api.RestartPolicyNever,

View File

@ -1031,7 +1031,7 @@ func createExecPodOrFail(c *client.Client, ns, name string) {
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: "exec", Name: "exec",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "while true; do sleep 5; done"}, Command: []string{"sh", "-c", "while true; do sleep 5; done"},
}, },
}, },

View File

@ -293,7 +293,7 @@ func injectHtml(client *client.Client, config VolumeTestConfig, volume api.Volum
Containers: []api.Container{ Containers: []api.Container{
{ {
Name: config.prefix + "-injector", Name: config.prefix + "-injector",
Image: "gcr.io/google_containers/busybox", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"/bin/sh"}, Command: []string{"/bin/sh"},
Args: []string{"-c", "echo '" + content + "' > /mnt/index.html && chmod o+rX /mnt /mnt/index.html"}, Args: []string{"-c", "echo '" + content + "' > /mnt/index.html && chmod o+rX /mnt /mnt/index.html"},
VolumeMounts: []api.VolumeMount{ VolumeMounts: []api.VolumeMount{