mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #111521 from wongma7/ephemeralcopy
Clear ephemeral container resources field when creating one in volume test
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user