mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user