func (j *TestJig) GetEndpointNodes() (map[string][]string, error) {
	nodes, err := e2enode.GetBoundedReadySchedulableNodes(j.Client, MaxNodesForEndpointsTests)
	if err != nil {
		return nil, err
	}
	epNodes, err := j.GetEndpointNodeNames()
	if err != nil {
		return nil, err
	}
	nodeMap := map[string][]string{}
	for _, n := range nodes.Items {
		if epNodes.Has(n.Name) {
			nodeMap[n.Name] = e2enode.GetAddresses(&n, v1.NodeExternalIP)
		}
	}
	return nodeMap, nil
}
// GetEndpointNodes returns a map of nodenames:external-ip on which the
// endpoints of the Service are running.
GetEndpointNodes returns a map of nodenames:external-ip on which the
endpoints of the Service are running.
// GetEndpointNodes returns a map of nodenames : external - ip on which the // endpoints of the Service are running .
func (j *TestJig) GetEndpointNodes() (map[string][]string, error) {
	nodes, err := e2enode.GetBoundedReadySchedulableNodes(j.Client, MaxNodesForEndpointsTests)
	if err != nil {
		return nil, err
	}
	epNodes, err := j.GetEndpointNodeNames()
	if err != nil {
		return nil, err
	}
	nodeMap := map[string][]string{}
	for _, n := range nodes.Items {
		if epNodes.Has(n.Name) {
			nodeMap[n.Name] = e2enode.GetAddresses(&n, v1.NodeExternalIP)
		}
	}
	return nodeMap, nil
}
func ( j * TestJig ) GetEndpointNodes ( ) ( map [ string ] [ ] string , error ) { nodes , err := e2enode . GetBoundedReadySchedulableNodes ( j . Client , MaxNodesForEndpointsTests ) if err != nil { return nil , err } epNodes , err := j . GetEndpointNodeNames ( ) if err != nil { return nil , err } nodeMap := map [ string ] [ ] string { } for _ , n := range nodes . Items { if epNodes . Has ( n . Name ) { nodeMap [ n . Name ] = e2enode . GetAddresses ( & n , v1 . NodeExternalIP ) } } return nodeMap , nil }
GetEndpointNodes returns a map of nodenames:external-ip on which the
endpoints of the Service are running.
GetEndpointNodes returns a map of nodenames : external - ip on which the endpoints of the Service are running .