mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
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:
parent
f001b3916d
commit
b62503dd66
@ -712,11 +712,6 @@ func NewProxier(
|
|||||||
healthzBindAddress string,
|
healthzBindAddress string,
|
||||||
config config.KubeProxyWinkernelConfiguration,
|
config config.KubeProxyWinkernelConfiguration,
|
||||||
) (*Proxier, error) {
|
) (*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
|
// windows listens to all node addresses
|
||||||
nodePortAddresses := proxyutil.NewNodePortAddresses(ipFamily, nil)
|
nodePortAddresses := proxyutil.NewNodePortAddresses(ipFamily, nil)
|
||||||
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses, healthzServer)
|
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses, healthzServer)
|
||||||
|
Loading…
Reference in New Issue
Block a user