Skip to content

Commit

Permalink
Merge pull request kubernetes#111521 from wongma7/ephemeralcopy
Browse files Browse the repository at this point in the history
Clear ephemeral container resources field when creating one in volume test
  • Loading branch information
k8s-ci-robot committed Aug 4, 2022
2 parents 305ad47 + 6390281 commit 15d290f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/framework/volume/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15d290f

Please sign in to comment.