Skip unavailable services during e2e remaining content check

pull/6/head
Jordan Liggitt 2018-01-23 10:26:10 -05:00
parent b967d1bc80
commit d512e87bb8
No known key found for this signature in database
GPG Key ID: 39928704103C7229
1 changed files with 4 additions and 0 deletions

View File

@ -1200,6 +1200,10 @@ func hasRemainingContent(c clientset.Interface, clientPool dynamic.ClientPool, n
if apierrs.IsMethodNotSupported(err) || apierrs.IsNotFound(err) || apierrs.IsForbidden(err) {
continue
}
// skip unavailable servers
if apierrs.IsServiceUnavailable(err) {
continue
}
return false, err
}
unstructuredList, ok := obj.(*unstructured.UnstructuredList)