Skip to content

Add set type for net.IP#130

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
andrewsykim:ipsets
Jan 17, 2020
Merged

Add set type for net.IP#130
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
andrewsykim:ipsets

Conversation

@andrewsykim

Copy link
Copy Markdown
Member

As discussed in kubernetes/kubernetes#85617 (comment), it would be generically useful to have a set type for net.IP.

/assign @danwinship @thockin

Signed-off-by: andrewsykim <kim.andrewsy@gmail.com>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 8, 2020
@danwinship

Copy link
Copy Markdown
Contributor

/lgtm
in terms of correctness and consistency with IPNetSet, though it's annoying that IPNetSet (and now IPSet) is inconsistent with k8s.io/apimachinery/pkg/util/set. eg, ParseIPNets() rather than NewIPNet() and StringSlice() rather than UnsortedList() and no Union()/Intersection()/etc

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 9, 2020
@andrewsykim

andrewsykim commented Jan 9, 2020

Copy link
Copy Markdown
Member Author

though it's annoying that IPNetSet (and now IPSet) is inconsistent with k8s.io/apimachinery/pkg/util/set. eg, ParseIPNets() rather than NewIPNet() and StringSlice() rather than UnsortedList() and no Union()/Intersection()/etc

💯 agree with this. I can look into this in a follow-up PR but it's quite a bit of work because we have to revendor it back to kubernetes/kubernetes and updating existing callers of the old functions. .

@thockin thockin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewsykim, danwinship, thockin

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

The pull request process is described here

Details 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 Jan 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit 5f6fbce into kubernetes:master Jan 17, 2020
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants