mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #45005 from FengyunPan/fix-e2e-federation
Automatic merge from submit-queue (batch tested with PRs 45005, 43053) [Federation]Fix e2e_federation: pass clusterIngress out None
This commit is contained in:
		@@ -323,7 +323,8 @@ func waitForIngressOrFail(clientset *kubeclientset.Clientset, namespace string,
 | 
			
		||||
	By(fmt.Sprintf("Fetching a federated ingress shard of ingress %q in namespace %q from cluster", ingress.Name, namespace))
 | 
			
		||||
	var clusterIngress *v1beta1.Ingress
 | 
			
		||||
	err := wait.PollImmediate(framework.Poll, timeout, func() (bool, error) {
 | 
			
		||||
		clusterIngress, err := clientset.Ingresses(namespace).Get(ingress.Name, metav1.GetOptions{})
 | 
			
		||||
		var err error
 | 
			
		||||
		clusterIngress, err = clientset.Ingresses(namespace).Get(ingress.Name, metav1.GetOptions{})
 | 
			
		||||
		if (!present) && errors.IsNotFound(err) { // We want it gone, and it's gone.
 | 
			
		||||
			By(fmt.Sprintf("Success: shard of federated ingress %q in namespace %q in cluster is absent", ingress.Name, namespace))
 | 
			
		||||
			return true, nil // Success
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user