Skip to content

Commit b62503d

Browse files
committed
Remove a dead error check in winkernel
The cmd/kube-proxy code never passes nil for the node IP any more.
1 parent f001b39 commit b62503d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/proxy/winkernel/proxier.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,6 @@ func NewProxier(
712712
healthzBindAddress string,
713713
config config.KubeProxyWinkernelConfiguration,
714714
) (*Proxier, error) {
715-
if nodeIP == nil {
716-
klog.InfoS("Invalid nodeIP, initializing kube-proxy with 127.0.0.1 as nodeIP")
717-
nodeIP = netutils.ParseIPSloppy("127.0.0.1")
718-
}
719-
720715
// windows listens to all node addresses
721716
nodePortAddresses := proxyutil.NewNodePortAddresses(ipFamily, nil)
722717
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses, healthzServer)

0 commit comments

Comments
 (0)