-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Updating NewCIDRSet return a value #45792
Updating NewCIDRSet return a value #45792
Conversation
Hi @rpothier. 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 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. |
@k8s-bot ok to test |
/release-note-none |
A few questions... Would it make sense, however, since the tests are being updated, to improve coverage in that module (it's at 61%)? There are some functions that don't have failure modes tested well, and occupyCIDR is not tested at all. |
/area ipv6 |
@pmichali I'll look at increasing the coverage. The code is address family agnostic, but there are more changes coming into these files, so it's good to have the UT's in place. |
c2fdb48
to
850c60d
Compare
850c60d
to
05ca0bb
Compare
05ca0bb
to
433a851
Compare
/sig network |
@leblancd - Does this overlap your ipv6 work? |
433a851
to
4252fb7
Compare
/ok-to-test |
/assign |
779ffa6
to
4932bee
Compare
for IPv6, NewCIDRSet was updated to return an error if the subnet mask size is too big. In this case, NewCIDRSet will fail and return an error.
4932bee
to
ef8936c
Compare
/lgtm |
@aveshagarwal @ingvagabund is there anything needed for a lgtm? This PR is needed to add IPv6 alpha support in 1.9. |
/test pull-kubernetes-unit |
@aveshagarwal @ingvagabund all tests are passing now. Can you review when you have a moment? |
@@ -292,7 +302,7 @@ func TestCIDRSet_AllocationOccupied(t *testing.T) { | |||
} | |||
} | |||
|
|||
var err error | |||
//var err error |
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.
remove?
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, dnardo, rpothier Associated issue: 52348 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/assign @thockin This PR is needed for IPv6 alpha support in 1.9. |
/test all Tests are more than 96 hours old. Re-running tests. |
Automatic merge from submit-queue (batch tested with PRs 46946, 45792). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Updating NewCIDRSet return value
For IPv6, NewCIDRSet was updated to return an error if the subnet mask size
is too big. In this case, NewCIDRSet will fail and return an error.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #52348Special notes for your reviewer:
Release note: