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

support IPv6 Pods during AZ detection #2375

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

M00nF1sh
Copy link
Collaborator

@M00nF1sh M00nF1sh commented Nov 19, 2021

Description

Follow up PR for #1862

  • Support IPv6 Pods when detecting AZ.
  • Support to disable cache when fetchVPCInfo. which can be used to replace VPCInfoResolver once PR-2332 merged
  • Support multiples VPCs

Additional notes:

  • used inet.af/netaddr to deal with IP, which will be a built-in lib with go 1.18. (It provides better behavior/performance when deal with IP addresses)
  • tested below cases:
    • ipv4 + cluster's VPC
    • ipv6 + cluster's VPC
    • ipv4 + peered VPC
    • ipv6 + peered VPC

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 size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 19, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: M00nF1sh

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 Nov 19, 2021
@k8s-ci-robot k8s-ci-robot requested a review from kishorj November 19, 2021 21:48
@codecov-commenter
Copy link

Codecov Report

Merging #2375 (73d3423) into main (556c568) will increase coverage by 0.08%.
The diff coverage is 65.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2375      +/-   ##
==========================================
+ Coverage   53.87%   53.95%   +0.08%     
==========================================
  Files         139      140       +1     
  Lines        7802     7829      +27     
==========================================
+ Hits         4203     4224      +21     
- Misses       3279     3288       +9     
+ Partials      320      317       -3     
Impacted Files Coverage Δ
pkg/networking/vpc_info_provider_mocks.go 0.00% <0.00%> (ø)
pkg/targetgroupbinding/resource_manager.go 16.79% <0.00%> (-2.22%) ⬇️
pkg/networking/vpc_info_provider.go 95.34% <96.15%> (+10.16%) ⬆️
pkg/networking/utils.go 100.00% <100.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 556c568...73d3423. Read the comment docs.

type VPCInfo ec2sdk.Vpc

// AssociatedIPv4CIDRs computes associated IPv4CIDRs for VPC.
func (vpc *VPCInfo) AssociatedIPv4CIDRs() []string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetAssociatedIPv4CIDRs instead?

}

// AssociatedIPv6CIDRs computes associated IPv6CIDRs for VPC.
func (vpc *VPCInfo) AssociatedIPv6CIDRs() []string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetAssociatedIPv6CIDRs

@kishorj kishorj added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Nov 24, 2021
@kishorj
Copy link
Collaborator

kishorj commented Nov 24, 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 Nov 24, 2021
@k8s-ci-robot k8s-ci-robot merged commit e87a5e9 into kubernetes-sigs:main Nov 25, 2021
Timothy-Dougherty pushed a commit to adammw/aws-load-balancer-controller that referenced this pull request Nov 9, 2023
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. size/XL Denotes a PR that changes 500-999 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.

4 participants