Skip to content

Commit

Permalink
Merge pull request kubernetes#103492 from jupblb/cherrypick-1
Browse files Browse the repository at this point in the history
Backport fix for flaky ESIPP test to 1.21
  • Loading branch information
k8s-ci-robot authored Jul 27, 2021
2 parents a74b455 + e074634 commit 38a62cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/framework/service/jig.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ func (j *TestJig) ListNodesWithEndpoint() ([]v1.Node, error) {
// GetEndpointNodeNames returns a string set of node names on which the
// endpoints of the given Service are running.
func (j *TestJig) GetEndpointNodeNames() (sets.String, error) {
err := j.waitForAvailableEndpoint(ServiceEndpointsTimeout)
if err != nil {
return nil, err
}
endpoints, err := j.Client.CoreV1().Endpoints(j.Namespace).Get(context.TODO(), j.Name, metav1.GetOptions{})
if err != nil {
return nil, fmt.Errorf("get endpoints for service %s/%s failed (%s)", j.Namespace, j.Name, err)
Expand Down

0 comments on commit 38a62cf

Please sign in to comment.