mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Merge pull request #123105 from danwinship/nodeport-addresses-primary
Add `--nodeport-addresses primary`, warn on empty `--nodeport-addresses`
This commit is contained in:
		| @@ -133,7 +133,7 @@ func NewFakeProxier(ipt utiliptables.Interface) *Proxier { | ||||
| 		natRules:                 proxyutil.NewLineBuffer(), | ||||
| 		nodeIP:                   netutils.ParseIPSloppy(testNodeIP), | ||||
| 		localhostNodePorts:       true, | ||||
| 		nodePortAddresses:        proxyutil.NewNodePortAddresses(ipfamily, nil, nil), | ||||
| 		nodePortAddresses:        proxyutil.NewNodePortAddresses(ipfamily, nil), | ||||
| 		networkInterfacer:        networkInterfacer, | ||||
| 	} | ||||
| 	p.setInitialized(true) | ||||
| @@ -2342,7 +2342,7 @@ func TestNodePorts(t *testing.T) { | ||||
| 			fp := NewFakeProxier(ipt) | ||||
| 			fp.localhostNodePorts = tc.localhostNodePorts | ||||
| 			if tc.nodePortAddresses != nil { | ||||
| 				fp.nodePortAddresses = proxyutil.NewNodePortAddresses(tc.family, tc.nodePortAddresses, nil) | ||||
| 				fp.nodePortAddresses = proxyutil.NewNodePortAddresses(tc.family, tc.nodePortAddresses) | ||||
| 			} | ||||
|  | ||||
| 			makeServiceMap(fp, | ||||
| @@ -2490,7 +2490,7 @@ func TestNodePorts(t *testing.T) { | ||||
| func TestHealthCheckNodePort(t *testing.T) { | ||||
| 	ipt := iptablestest.NewFake() | ||||
| 	fp := NewFakeProxier(ipt) | ||||
| 	fp.nodePortAddresses = proxyutil.NewNodePortAddresses(v1.IPv4Protocol, []string{"127.0.0.0/8"}, nil) | ||||
| 	fp.nodePortAddresses = proxyutil.NewNodePortAddresses(v1.IPv4Protocol, []string{"127.0.0.0/8"}) | ||||
|  | ||||
| 	svcIP := "172.30.0.42" | ||||
| 	svcPort := 80 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot