Skip to content

Comments

NetworkPolicy ipblock except, port ranges#374

Merged
openshift-merge-robot merged 4 commits intoopenshift:masterfrom
danwinship:networkpolicy-ranges
Dec 9, 2021
Merged

NetworkPolicy ipblock except, port ranges#374
openshift-merge-robot merged 4 commits intoopenshift:masterfrom
danwinship:networkpolicy-ranges

Conversation

@danwinship
Copy link
Contributor

@danwinship danwinship commented Nov 23, 2021

(WIP because this builds on top of #372 and needs to wait for that to merge first.)

This finishes up NetworkPolicy feature parity with ovn-kubernetes by implementing ipBlock except rules and port ranges, allowing us to simplify the docs by getting rid of all sdn-vs-ovn notes in the NetworkPolicy docs.

The OpenFlow that this code generates from ipblocks with exceptions is equivalent to what ovn-kubernetes generates.

This also addresses SDN-1960 by adding warning events when a NetworkPolicy generates a pathological number of OpenFlow rules (which seemed like a good thing to implement along with this, since the new code tends to generate lots of flows...)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2021
@openshift-ci openshift-ci bot requested review from abhat and squeed November 23, 2021 15:47
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2021
@danwinship
Copy link
Contributor Author

/retest

@danwinship
Copy link
Contributor Author

/uncc squeed
/cc @JacobTanenbaum

@openshift-ci openshift-ci bot requested review from JacobTanenbaum and removed request for squeed December 8, 2021 20:13
And ignore the policy entirely if it's too pathological.
There's no point in allowing an IPv6 IPBlock in openshift-sdn, but if
someone does it, make sure we don't do anything weird.
@danwinship danwinship force-pushed the networkpolicy-ranges branch from b17e0ec to c680692 Compare December 9, 2021 13:58
@danwinship danwinship changed the title WIP NetworkPolicy ipblock except, port ranges NetworkPolicy ipblock except, port ranges Dec 9, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 9, 2021
@JacobTanenbaum
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 9, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, JacobTanenbaum

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

@openshift-merge-robot openshift-merge-robot merged commit d4956c8 into openshift:master Dec 9, 2021
@danwinship danwinship deleted the networkpolicy-ranges branch December 9, 2021 19:27
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants