Remove a dead error check in winkernel

The cmd/kube-proxy code never passes nil for the node IP any more.
This commit is contained in:
Dan Winship 2024-12-31 20:05:20 -05:00
parent f001b3916d
commit b62503dd66

View File

@ -712,11 +712,6 @@ func NewProxier(
healthzBindAddress string,
config config.KubeProxyWinkernelConfiguration,
) (*Proxier, error) {
if nodeIP == nil {
klog.InfoS("Invalid nodeIP, initializing kube-proxy with 127.0.0.1 as nodeIP")
nodeIP = netutils.ParseIPSloppy("127.0.0.1")
}
// windows listens to all node addresses
nodePortAddresses := proxyutil.NewNodePortAddresses(ipFamily, nil)
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses, healthzServer)