-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Policy Assistant] Summary Table for (B)ANP and NetPol #153
Comments
Hey @huntergregory, I would like to work on this and I believe I know what is expected here however I have two questions:
|
/assign |
Thanks for the help with this issue @Peac36 ! For testing, there are some policies in test/integration/integration_test.go which might be helpful. NetworkPolicyV1 doesn't quite have a priority concept. Instead, a NPv1 defines a target (based on its pod selector and the namespace it resides in) and has a list of allowed peers (e.g. for ingress, traffic goes from a peer to a target). For an isolated Pod, if any NPv1 allows ingress to the Pod, then ingress is allowed. There is similar logic for egress. This section of the documentation explains this further. So we'll have to be creative about the action/priority column for NPv1 (I was thinking to just say Happy to help with any other questions/clarifications 🙂 |
Thanks @huntergregory, I've just opened the PR for this. Let's continue the discussion there. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Fixed in #188 |
Requirement for #150.
Dependency: #152
Repurposing
cyclonus analyze --mode=explain
(seeParseMode
in analyze.go). This function is also used in running the conformance tests viacyclonus generate
. The function displays a summary table of all ingress rules for the set of NetworkPolicies, then all egress rules for the set.Current Output:
EDIT: below images are slightly outdated. See new images in further comments.
We can repurpose this for ANP (highlighting changes):
Example with multiple Network Policies:
The text was updated successfully, but these errors were encountered: