Merge pull request #16137 from ArtfulCoder/externalIPFix
release NodePort correctly
This commit is contained in:
		| @@ -655,7 +655,7 @@ func (proxier *Proxier) closeOnePortal(portal portal, protocol api.Protocol, pro | ||||
| 	if local, err := isLocalIP(portal.ip); err != nil { | ||||
| 		el = append(el, fmt.Errorf("can't determine if IP is local, assuming not: %v", err)) | ||||
| 	} else if local { | ||||
| 		if err := proxier.releaseNodePort(nil, portal.port, protocol, name); err != nil { | ||||
| 		if err := proxier.releaseNodePort(portal.ip, portal.port, protocol, name); err != nil { | ||||
| 			el = append(el, err) | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Saad Ali
					Saad Ali