Updating kube-proxy to ignore unready endpoints for Topology Hints

This commit is contained in:
Rob Scott
2021-11-17 13:39:38 -08:00
parent 1367cca8fd
commit 1983f41065
2 changed files with 38 additions and 4 deletions

View File

@@ -68,6 +68,9 @@ func filterEndpointsWithHints(endpoints []Endpoint, hintsAnnotation string, node
filteredEndpoints := []Endpoint{}
for _, endpoint := range endpoints {
if !endpoint.IsReady() {
continue
}
if endpoint.GetZoneHints().Len() == 0 {
klog.InfoS("Skipping topology aware endpoint filtering since one or more endpoints is missing a zone hint")
return endpoints