-
Notifications
You must be signed in to change notification settings - Fork 303
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
Helpers removed #2577
Helpers removed #2577
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 08volt The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @08volt. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
ba87a8c
to
72b74a5
Compare
* zoneGetter only includes nodes from default subnet if EnableMultiSubnetCluster is true. In this case, zoneGetter returns an error for ZoneForNode with node in non-default subnet, and excludes such nodes from ListNode. * Change predicate functions from utils function to member funtions of zoneGetter, so they have access to variables in zoneGetter. * Predicate functions will only be accessable with IsNodeSelectedByFilter by providing proper filters. It will do the corresponding conversion and run the checking function on the provided node. Non-existing filters will be considered as not selected.
* Refactor TestDegradedModeValidateEndpointInfo and TestValidateEndpointFields into one to make a clear comparison of two calculations. * Add test cases for TestValidateEndpointFields so all error cases are covered by both calculations. * Consolidate nodeLister used in tests, and remove node populations since it is covered in PopulateFakeNodeInformer.
Instead of lengthy list of args Change-Id: I7440b5f904309b6612581a57ef9a07c6eff919fb
* Currently TestSyncPod depends on the order of execution in test cases, where one test case create pod and the remaining ones update based on it. * Split each test case such that they are using different pods and thus independent of each other.
* Endpoint and EPS count metrics now will track number of endpoints not in default subnet, and they are skipped from endpoint calculations in normal and degraded mode.
* Generate endpoint sets and endpoint maps from CalculateEndpoints so they contain a consistent set of endpoints. * This also makes the test easier to maintain because we don't need to hard-code got/expected endpoints.
* Rename DupCount from CalculateEndpoints to endpointsExcludedInCalculation, since we need to take endpoints from non-default subnet into account as well. * We don't need to track these counts separately outside of CalculateEndpoints() since we only need them in ValidateEndpoints() to understand the total number of endpoint we excluded during calculations. The actual numbers only matter when we emit metrics, which happends within CalculateEndpoints() in toZoneNetworkEndpointMap().
72b74a5
to
a50c93a
Compare
issue #1902
Removed helper dependencies from the cloud-provider
Originally posted by Antonio Ojea in #1896 (comment)