-
Notifications
You must be signed in to change notification settings - Fork 276
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
Aggregate overlapping allowed source ranges #6807
Aggregate overlapping allowed source ranges #6807
Conversation
Hi @zarvd. 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 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-sigs/prow repository. |
/ok-to-test |
3c418b5
to
54d1b8c
Compare
/retest |
54d1b8c
to
f875524
Compare
/retest |
1 similar comment
/retest |
60716b2
to
739d43b
Compare
Can we add an e2e? |
739d43b
to
c345c2c
Compare
@@ -619,6 +640,21 @@ var _ = Describe("Network security group", Label(utils.TestSuiteLabelNSG), func( | |||
allowedIPv6Ranges = []string{ | |||
"2c0f:fe40:8000::/48", "2c0f:feb0::/43", | |||
} | |||
|
|||
// The overlapping IP ranges will be aggregated after reconciled |
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.
@nilo19 Added some overlapping CIDRs to the existing cases. Let’s see how it goes.
5982eae
to
b21011e
Compare
/retest |
1 similar comment
/retest |
b21011e
to
b278399
Compare
266ab0c
to
4845c29
Compare
4845c29
to
6b01530
Compare
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, zarvd 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 |
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR introduces a prefix tree to aggregate overlapping allowed source ranges. Without it, customers have to merge the CIDR manually; otherwise, the Azure NSG operation will fail.
Which issue(s) this PR fixes:
Fixes #6775
Special notes for your reviewer:
I guess the performance of this operation is acceptable for now. It’s extremely rare to find a service that allows more than 20,000 CIDRs anyway.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: