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
netpol: Add CRUD tests for NetworkPolicy API #95155
Conversation
/sig network |
@cmluciano any thoughts on how we might coordinate on #91592 (implements the KEP in flight to overhaul) ? |
oh wait, i was worried these were new policies validation tests, but it seems like theyre just doing API stuff... maybe this works as a standalone test, since it doesnt actually test the policies ... |
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.
feedback comments
@jayunit100 Yes these are minimal tests that will eventually be promoted to conformance testing. These tests don't require the plugin and should not cause conflict in a non-fresh cluster. |
/lgtm it runs in the CI and pass
|
@danwinship Does this look good to you? |
I guess? I don't know a lot about conformance requirements. Are there other APIs where we do something like this? |
I don't think any of the tests here are being added to conformance yet, though I do think they should be promoted in the future once the tests have baked for a bit (similar to the Ingress API tests). @cmluciano was the intention to add these to conformance in this PR? |
He said "suitable for promotion to conformance" so I assume the intention wasn't to make them conformance in this PR. But I was just saying I have no idea if these are actually "suitable for promotion to conformance"... |
Thanks for clarifying :) I would think these tests are suitable given the Ingress API tests are in conformance today. @johnbelamaric @dims do you foresee any issues promoting these to conformance at some point in the future? |
Yes the plan was to promote these to conformance after they are successful for a few weeks. I believe the tests are suitable for promotion since they follow the same conventions and format as the ones I added for Ingress API conformance with #91830 |
e977aa8
to
8b00613
Compare
CRUD operations are the extent of conformance testing that we can add for NetworkPolicy tests since we require a 3rd party plugin like CNI for enforcement. Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
8b00613
to
62ac60c
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewsykim, cmluciano 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 |
/retest |
/kind feature |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind feature
/area conformance
/area test
What this PR does / why we need it:
for NetworkPolicy tests since we require a 3rd party plugin like CNI for enforcement.
Which issue(s) this PR fixes:
xref: #94776
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: