Skip to content

Discovery subnets by available ip addresses #2146

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

oliviassss
Copy link
Collaborator

@oliviassss oliviassss commented Jul 29, 2021

Issue

#2056

Description

Add a new step in subnet discovery, which is to select subnets based on the count of available IP addresses.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the docs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@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 Jul 29, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @oliviassss. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 29, 2021
@k8s-ci-robot k8s-ci-robot requested review from kishorj and M00nF1sh July 29, 2021 18:57
@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2021

Codecov Report

Merging #2146 (857ce64) into main (8f1c32c) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2146      +/-   ##
==========================================
+ Coverage   52.04%   52.11%   +0.06%     
==========================================
  Files         132      132              
  Lines        7130     7148      +18     
==========================================
+ Hits         3711     3725      +14     
- Misses       3131     3135       +4     
  Partials      288      288              
Impacted Files Coverage Δ
pkg/ingress/model_build_load_balancer.go 51.08% <100.00%> (+0.21%) ⬆️
pkg/networking/subnet_resolver.go 92.52% <100.00%> (+0.36%) ⬆️
pkg/service/model_build_load_balancer.go 83.17% <100.00%> (-1.22%) ⬇️
pkg/service/model_build_listener.go 91.20% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f1c32c...857ce64. Read the comment docs.

@kishorj
Copy link
Collaborator

kishorj commented Jul 29, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 29, 2021
@kishorj kishorj added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jul 29, 2021
@oliviassss oliviassss marked this pull request as draft July 30, 2021 00:17
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 30, 2021
@oliviassss oliviassss force-pushed the discovery_by_available_ip_addresses branch from 3785191 to 2694b20 Compare July 30, 2021 04:17
@oliviassss oliviassss force-pushed the discovery_by_available_ip_addresses branch from 2694b20 to 8925c89 Compare July 30, 2021 04:28
@oliviassss oliviassss marked this pull request as ready for review July 30, 2021 04:33
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 30, 2021
@oliviassss oliviassss changed the title Discovery by available ip addresses Discovery subnets by available ip addresses Jul 30, 2021
@oliviassss oliviassss force-pushed the discovery_by_available_ip_addresses branch from 2e4f00e to 857ce64 Compare August 4, 2021 04:26
@oliviassss oliviassss requested a review from kishorj August 4, 2021 15:59
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kishorj, oliviassss

The full list of commands accepted by this bot can be found here.

The pull request process is described 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2021
@kishorj
Copy link
Collaborator

kishorj commented Aug 4, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 4, 2021
@k8s-ci-robot k8s-ci-robot merged commit fe7dcf9 into kubernetes-sigs:main Aug 4, 2021
@oliviassss oliviassss deleted the discovery_by_available_ip_addresses branch August 25, 2021 21:58
@mikestef9
Copy link

Can we add a doc update for this feature? Probably here https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/deploy/subnet_discovery/

@oliviassss
Copy link
Collaborator Author

@mikestef9 Sure, will update it in the patch release, thanks.

Timothy-Dougherty pushed a commit to adammw/aws-load-balancer-controller that referenced this pull request Nov 9, 2023
* discovery subnet by the count of available ip address

* update unit test for subnet_resolver

* filter subnets before iterating subnetsByAZ

* decouple buildLoadBalancerSubnets from buildLoadBalancerSubnetMappings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants