proxier/ipvs: remove redundant length check for node addresses

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
Andrew Sy Kim
2020-05-28 11:48:48 -04:00
parent f96d35fc11
commit 18741157ef

View File

@@ -1104,8 +1104,7 @@ func (proxier *Proxier) syncProxyRules() {
nodeAddrSet, err := utilproxy.GetNodeAddresses(proxier.nodePortAddresses, proxier.networkInterfacer)
if err != nil {
klog.Errorf("Failed to get node ip address matching nodeport cidr: %v", err)
}
if err == nil && nodeAddrSet.Len() > 0 {
} else {
nodeAddresses = nodeAddrSet.List()
for _, address := range nodeAddresses {
if utilproxy.IsZeroCIDR(address) {