Skip to content
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

Closed
wants to merge 19 commits into from
Closed

Helpers removed #2577

wants to merge 19 commits into from

Conversation

08volt
Copy link
Contributor

@08volt 08volt commented Jun 3, 2024

issue #1902

Removed helper dependencies from the cloud-provider

Originally posted by Antonio Ojea in #1896 (comment)

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 08volt
Once this PR has been reviewed and has the lgtm label, please assign mmamczur for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 3, 2024
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 3, 2024
@08volt 08volt force-pushed the helpers-removed-v4 branch from ba87a8c to 72b74a5 Compare June 3, 2024 10:39
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 3, 2024
sawsa307 and others added 19 commits June 3, 2024 10:42
* 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().
@08volt 08volt force-pushed the helpers-removed-v4 branch from 72b74a5 to a50c93a Compare June 3, 2024 10:42
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 3, 2024
@08volt 08volt closed this Jun 3, 2024
@08volt 08volt deleted the helpers-removed-v4 branch June 3, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants