diff --git a/test/conformance/api/v1/service_test.go b/test/conformance/api/v1/service_test.go index b3b9aadd202b..94d185a3e102 100644 --- a/test/conformance/api/v1/service_test.go +++ b/test/conformance/api/v1/service_test.go @@ -724,6 +724,12 @@ func TestServiceCreateWithMultipleContainers(t *testing.T) { Image: pkgtest.ImagePath(names.Sidecars[0]), }} + // Please see the comment in test/v1/configuration.go. + if !test.ServingFlags.DisableOptionalAPI { + containers[0].ImagePullPolicy = corev1.PullIfNotPresent + containers[1].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..347442dec9eb 100644 --- a/test/e2e/multicontainer_test.go +++ b/test/e2e/multicontainer_test.go @@ -57,6 +57,12 @@ func TestMultiContainer(t *testing.T) { Image: pkgTest.ImagePath(names.Sidecars[0]), }} + // Please see the comment in test/v1/configuration.go. + if !test.ServingFlags.DisableOptionalAPI { + containers[0].ImagePullPolicy = corev1.PullIfNotPresent + containers[1].ImagePullPolicy = corev1.PullIfNotPresent + } + test.EnsureTearDown(t, clients, &names) t.Log("Creating a new Service")