-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Test case to ensure policy denies ingress traffic to ingress isolate pod #115108
Conversation
@daman1807: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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/test-infra repository. |
Welcome @daman1807! |
@daman1807: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
Hi @daman1807. Thanks for your PR. I'm waiting for a kubernetes 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/test-infra repository. |
/ok-to-test |
/retest |
Hey @daman1807 Thanks for taking a look at this, It looks like you added a test to the legacy network policy suite, that's good but I think what's more important is adding it to newer truthtable tests found here -> https://github.com/kubernetes/kubernetes/blob/master/test/e2e/network/netpol/network_policy.go |
@astoycos I looked into network_policy.go and found only intra-pod connectivity(E/W) tests by asserting on truth tables. In this case, we need to test N/S ingress traffic and I don't think it will be possible to do it with current truth table structures. In network_legacy.go I found similar tests which validated connectivity on services rather than pods and also a pod and service are initialized in Ginko context before each test in Should I just move the test to |
Hrm I think we should still be using the truth tables/ new style tests and no adding a test which doesn't use the new tables to the new code probably isn't the right route either....we may just need to add the required functionality to the truth table functions. I'll have to take a fresh look to see how difficult it'll be but ultimately that seems like the right way forward. |
@astoycos Can I create a similar matrix and reachability tests for N/S traffic? |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: daman1807 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR adds a test case to the network policy test suite for ensuring that traffic cannot reach ingress-isolated pods.
Which issue(s) this PR fixes:
Fixes #114369
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: