don't force delete pods on e2e tests
This commit is contained in:
		@@ -882,10 +882,10 @@ func (config *NetworkingTestConfig) createNetProxyPods(ctx context.Context, podN
 | 
				
			|||||||
// DeleteNetProxyPod deletes the first endpoint pod and waits for it being removed.
 | 
					// DeleteNetProxyPod deletes the first endpoint pod and waits for it being removed.
 | 
				
			||||||
func (config *NetworkingTestConfig) DeleteNetProxyPod(ctx context.Context) {
 | 
					func (config *NetworkingTestConfig) DeleteNetProxyPod(ctx context.Context) {
 | 
				
			||||||
	pod := config.EndpointPods[0]
 | 
						pod := config.EndpointPods[0]
 | 
				
			||||||
	framework.ExpectNoError(config.getPodClient().Delete(ctx, pod.Name, *metav1.NewDeleteOptions(0)))
 | 
						framework.ExpectNoError(config.getPodClient().Delete(ctx, pod.Name, metav1.DeleteOptions{}))
 | 
				
			||||||
	config.EndpointPods = config.EndpointPods[1:]
 | 
						config.EndpointPods = config.EndpointPods[1:]
 | 
				
			||||||
	// wait for pod being deleted.
 | 
						// wait for pod being deleted.
 | 
				
			||||||
	err := e2epod.WaitForPodNotFoundInNamespace(ctx, config.f.ClientSet, pod.Name, config.Namespace, wait.ForeverTestTimeout)
 | 
						err := e2epod.WaitForPodNotFoundInNamespace(ctx, config.f.ClientSet, pod.Name, config.Namespace, config.f.Timeouts.PodDelete)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		framework.Failf("Failed to delete %s pod: %v", pod.Name, err)
 | 
							framework.Failf("Failed to delete %s pod: %v", pod.Name, err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user