Merge pull request #119966 from aojea/fixfix

e2e framework util subtle bug checking endpoints
This commit is contained in:
Kubernetes Prow Robot
2023-08-16 09:33:08 -07:00
committed by GitHub

View File

@@ -478,7 +478,7 @@ func isIPv6Endpoint(e *v1.Endpoints) bool {
continue
}
// Endpoints are single family, so it is enough to check only one address
return netutils.IsIPv6String(sub.Addresses[0].IP)
return netutils.IsIPv6String(addr.IP)
}
}
// default to IPv4 an Endpoint without IP addresses