diff --git a/test/conformance/api/v1/service_test.go b/test/conformance/api/v1/service_test.go index b3b9aadd202b..0f7c3f5fd54e 100644 --- a/test/conformance/api/v1/service_test.go +++ b/test/conformance/api/v1/service_test.go @@ -724,6 +724,13 @@ func TestServiceCreateWithMultipleContainers(t *testing.T) { Image: pkgtest.ImagePath(names.Sidecars[0]), }} + // Please see the comment in test/v1/configuration.go. + if !test.ServingFlags.DisableOptionalAPI { + for _, c := range containers { + c.ImagePullPolicy = corev1.PullIfNotPresent + } + } + // Setup initial Service if _, err := v1test.CreateServiceReady(t, clients, &names, func(svc *v1.Service) { svc.Spec.Template.Spec.Containers = containers diff --git a/test/e2e/multicontainer_test.go b/test/e2e/multicontainer_test.go index 10693c50a849..55522eb868f1 100644 --- a/test/e2e/multicontainer_test.go +++ b/test/e2e/multicontainer_test.go @@ -57,6 +57,13 @@ func TestMultiContainer(t *testing.T) { Image: pkgTest.ImagePath(names.Sidecars[0]), }} + // Please see the comment in test/v1/configuration.go. + if !test.ServingFlags.DisableOptionalAPI { + for _, c := range containers { + c.ImagePullPolicy = corev1.PullIfNotPresent + } + } + test.EnsureTearDown(t, clients, &names) t.Log("Creating a new Service")