mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	Handle int and string port in makePort
Signed-off-by: Daniela Lins <danielamlins@gmail.com>
This commit is contained in:
		| @@ -59,7 +59,7 @@ func makePort(proto *api.Protocol, port intstr.IntOrString, endPort int32) netwo | |||||||
| 		Protocol: proto, | 		Protocol: proto, | ||||||
| 		Port:     nil, | 		Port:     nil, | ||||||
| 	} | 	} | ||||||
| 	if port != intstr.FromInt(0) { | 	if port != intstr.FromInt(0) && port != intstr.FromString("") && port != intstr.FromString("0") { | ||||||
| 		r.Port = &port | 		r.Port = &port | ||||||
| 	} | 	} | ||||||
| 	if endPort != 0 { | 	if endPort != 0 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user