From 6390281a1c793a179a783e7025f41087fdeaea3c Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Thu, 28 Jul 2022 15:47:14 -0700 Subject: [PATCH] Clear ephemeral container resources field when creating one in volume test --- test/e2e/framework/volume/fixtures.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/framework/volume/fixtures.go b/test/e2e/framework/volume/fixtures.go index 54d0418a415..772023aeffe 100644 --- a/test/e2e/framework/volume/fixtures.go +++ b/test/e2e/framework/volume/fixtures.go @@ -606,6 +606,7 @@ func testVolumeClient(f *framework.Framework, config TestConfig, fsGroup *int64, ec := &v1.EphemeralContainer{ EphemeralContainerCommon: v1.EphemeralContainerCommon(clientPod.Spec.Containers[0]), } + ec.Resources = v1.ResourceRequirements{} ec.Name = "volume-ephemeral-container" err = f.PodClient().AddEphemeralContainerSync(clientPod, ec, timeouts.PodStart) // The API server will return NotFound for the subresource when the feature is disabled