Skip to content

Commit

Permalink
Merge pull request kubernetes#101939 from dervoeti/automated-cherry-p…
Browse files Browse the repository at this point in the history
…ick-of-#101857-upstream-release-1.21

Automated cherry pick of kubernetes#101857: fixed wrong warning in kube-proxy regarding topology aware
  • Loading branch information
k8s-ci-robot committed Jun 8, 2021
2 parents 2231319 + dbc2863 commit 3369fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/proxy/topology.go
Expand Up @@ -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
Expand Down

0 comments on commit 3369fa5

Please sign in to comment.