-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
IPv6 Support in Inbound CIDR Annotation #991
Conversation
Welcome @csnitker! |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Hi @csnitker. Thanks for your PR. I'm waiting for a kubernetes-sigs or 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/test-infra repository. |
/check-cla |
/assign @bigkraig |
@M00nF1sh or @micahhausler - Any chance I could get a review and an ok for testing? |
/ok-to-test |
} | ||
|
||
if ip.To4() == nil { | ||
return out, fmt.Errorf("CIDR must use an IPv4 address: %v", inboundCidr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ip.To4() is not enough, ip.To4() for "::/0" will return non-nil, and cause SG update fails.
Example checks in V2 branch: https://github.com/kubernetes-sigs/aws-alb-ingress-controller/blob/v2/pkg/build/lb_security_group.go#L145
} | ||
if len(out) == 0 { | ||
out = append(out, "0.0.0.0/0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would we change the logic to align with V2: https://github.com/kubernetes-sigs/aws-alb-ingress-controller/blob/v2/pkg/build/lb_security_group.go#L166
Basically only append v4/v6 default settings when customer haven't explicitly configured any cidrs.
If the customer only configured v6 cidr but didn't specify "dualstack", it's typically due an error(where customer expected only v6 works), and we shouldn't append default 0.0.0.0/0 in such case)
Thanks for making contributions :D left a few tiny comments :D |
/retest |
1 similar comment
/retest |
/test pull-aws-alb-ingress-controller-e2e-test |
@csnitker
|
/retest |
@csnitker As of now, I think the easiest fix is to add IpV4 and IpV6 as separate ec2.IpPermission Object(above the line of Alternatively, we'll need to implement https://github.com/kubernetes-sigs/aws-alb-ingress-controller/blob/f8556d824c158201ecbda09bf25c4dc2ae610896/pkg/deploy/lb_security_group.go#L279 in securityGroup.Reconcile. |
@M00nF1sh - Looks like that was the problem, the tests appear to be passing this time |
Thanks a lot for the change :D |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csnitker, 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 |
::/0
) when ip address type is set to dualstackThis fixes: #887