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:
Kubernetes Submit Queue 2017-05-03 01:07:05 -07:00 committed by GitHub
commit d2a31cf321

View File

@ -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