-
Notifications
You must be signed in to change notification settings - Fork 260
fix: [NPM-Win] Get local endpoints for updatepod, but all endpoints for cleanup. #1606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
On 2 separate nodes, verified that we ignore all remote endpoints and do not ignore any local endpoints. Tested a cluster with 2 windows nodes and 1 master node. There were 2 customer Pods per windows node. 11 off-node kube-system Pods had corresponding HNS Endpoints. There were also 6 off-node kube-system Pods which didn't have remote HNS Endpoints. None of the customer Pods (on Windows nodes) had corresponding remote HNS Endpoints. The 11 ignored in this example: |
…or cleanup. (Azure#1606) * fix: [NPM-WIN] Get only local endpoints to apply ACLs on * addding a const * fix lints * update UTs (TODO: uncomment multi-job test when fixed) * resolve lint again * true backwards compatibility * resolve TODO by uncommenting UT * fix lint Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
…or cleanup. (Azure#1606) * fix: [NPM-WIN] Get only local endpoints to apply ACLs on * addding a const * fix lints * update UTs (TODO: uncomment multi-job test when fixed) * resolve lint again * true backwards compatibility * resolve TODO by uncommenting UT * fix lint Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
…or cleanup. (Azure#1606) * fix: [NPM-WIN] Get only local endpoints to apply ACLs on * addding a const * fix lints * update UTs (TODO: uncomment multi-job test when fixed) * resolve lint again * true backwards compatibility * resolve TODO by uncommenting UT * fix lint Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
…or cleanup. (Azure#1606) * fix: [NPM-WIN] Get only local endpoints to apply ACLs on * addding a const * fix lints * update UTs (TODO: uncomment multi-job test when fixed) * resolve lint again * true backwards compatibility * resolve TODO by uncommenting UT * fix lint Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
Reason for Change:
Right now, GetEndpointsForNetwork gives all endpoint including remote endpoints which are not required. This is causing duplicate endpoints for the same IP.
This change will only take all endpoints while cleaning up (for backward compatibility) and will filter only local endpoints for all other purposes.
Issue Fixed:
Requirements:
Notes: