✨ infer IP version from subnet CIDR on creation - #3276
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Welcome @Jamstah! |
|
Hi @Jamstah. 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 Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/hold cancel |
|
/ok-to-test |
Subnet creation was unconditionally passing IPVersion 4 to OpenStack, which would cause IPv6 subnets to be created with the wrong IP version. The fix parses the CIDR and selects IPv6 when the network address has no IPv4 representation. Tests are extended to cover both the create and reconcile-existing paths for an IPv6 CIDR. Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
3eda05a to
d4ad527
Compare
|
/retest-required |
lentzi90
left a comment
There was a problem hiding this comment.
Thanks, this looks good!
I would call this a feature though.
/retitle ✨ infer IP version from subnet CIDR on creation
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90, nikParasyr The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Subnet creation was unconditionally passing IPVersion 4 to OpenStack, which would cause IPv6 subnets to be created with the wrong IP version. The fix parses the CIDR and selects IPv6 when the network address has no IPv4 representation. Tests are extended to cover both the create and reconcile-existing paths for an IPv6 CIDR.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #1587
Special notes for your reviewer:
TODOs: