Skip to content

Commit

Permalink
Merge pull request kubernetes#100228 from sbangari/automated-cherry-p…
Browse files Browse the repository at this point in the history
…ick-of-#99958-upstream-release-1.20

Automated cherry pick of kubernetes#99958: For LoadBalancer Service type don't create a HNS policy for empty or …
  • Loading branch information
k8s-ci-robot committed Apr 2, 2021
2 parents edc823e + 8d7f96f commit be4e504
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/proxy/winkernel/proxier.go
Expand Up @@ -374,7 +374,9 @@ func (proxier *Proxier) newServiceInfo(port *v1.ServicePort, service *v1.Service
}

for _, ingress := range service.Status.LoadBalancer.Ingress {
info.loadBalancerIngressIPs = append(info.loadBalancerIngressIPs, &loadBalancerIngressInfo{ip: ingress.IP})
if net.ParseIP(ingress.IP) != nil {
info.loadBalancerIngressIPs = append(info.loadBalancerIngressIPs, &loadBalancerIngressInfo{ip: ingress.IP})
}
}
return info
}
Expand Down

0 comments on commit be4e504

Please sign in to comment.