Skip to content
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] fix: npv1 deny-all simulation #240

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

huntergregory
Copy link
Contributor

@huntergregory huntergregory commented Jul 19, 2024

Fixes #211. Now the simulation for a NetworkPolicy (v1) without any ingress/egress rules would properly deny traffic (if no other NetPols allow traffic).

Also updates wording for the explain table from "NPv1: All peers allowed" to "NPv1: Allow any peers". Saying "all peers" doesn't seem right in case there are no peers?

Tests:

  • Add a "deny all" connectivity integration test.
  • Unit tests for the simplifier

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 19, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: huntergregory

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 19, 2024
Copy link

netlify bot commented Jul 19, 2024

Deploy Preview for kubernetes-sigs-network-policy-api ready!

Name Link
🔨 Latest commit 62767e2
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-network-policy-api/deploys/6699d468a6bc40000807024e
😎 Deploy Preview https://deploy-preview-240--kubernetes-sigs-network-policy-api.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 19, 2024
@mattfenwick
Copy link
Contributor

/lgtm

Nice one @huntergregory !

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 22, 2024
@k8s-ci-robot k8s-ci-robot merged commit a8b203d into kubernetes-sigs:main Jul 22, 2024
10 checks passed
huntergregory added a commit to huntergregory/network-policy-api that referenced this pull request Aug 8, 2024
huntergregory added a commit to huntergregory/network-policy-api that referenced this pull request Aug 8, 2024
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.

[Policy Assistant] fix deny-all simulation for NPv1
3 participants