From b62503dd66ecee08022055a6c1b7c657440f5130 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 31 Dec 2024 20:05:20 -0500 Subject: [PATCH] Remove a dead error check in winkernel The cmd/kube-proxy code never passes nil for the node IP any more. --- pkg/proxy/winkernel/proxier.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/proxy/winkernel/proxier.go b/pkg/proxy/winkernel/proxier.go index 4558014331f..57c4a908b6f 100644 --- a/pkg/proxy/winkernel/proxier.go +++ b/pkg/proxy/winkernel/proxier.go @@ -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)