Merge pull request #101857 from dervoeti/master

fixed wrong warning in kube-proxy regarding topology aware hints
This commit is contained in:
Kubernetes Prow Robot 2021-05-11 14:11:13 -07:00 committed by GitHub
commit 5edccec32b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,12 +81,12 @@ func filterEndpointsWithHints(endpoints []Endpoint, hintsAnnotation string, node
}
}
if len(filteredEndpoints) > 0 {
if len(filteredEndpoints) == 0 {
klog.Warningf("Skipping topology aware endpoint filtering since no hints were provided for zone %s", zone)
return filteredEndpoints
return endpoints
}
return endpoints
return filteredEndpoints
}
// deprecatedTopologyFilter returns the appropriate endpoints based on the