-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Implement failureActionOverrides namespaceSelector #13750
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
base: main
Are you sure you want to change the base?
feat: Implement failureActionOverrides namespaceSelector #13750
Conversation
785be83 to
528e1e3
Compare
Signed-off-by: Franco <[email protected]>
97769ab to
3299a06
Compare
3299a06 to
5b27116
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13750 +/- ##
=======================================
Coverage 13.85% 13.85%
=======================================
Files 1083 1083
Lines 104174 104198 +24
=======================================
+ Hits 14430 14440 +10
- Misses 88007 88019 +12
- Partials 1737 1739 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
MariamFahmy98
left a comment
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.
Thank you for your contribution! I added some comments.
|
Hey @MariamFahmy98, just checking if you need anything else from me here. |
|
Hey @MariamFahmy98 , just checking here if there is something else I could do here 😄 |
|
Hello @MariamFahmy98 , may you review this again? Thank you 😄 |
MariamFahmy98
left a comment
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.
Apologies for the delayed review. Overall, it looks good to me. Could you please add a Chainsaw test using the same policy as in the proof-of-manifests? The idea is to test creating a bad resource in both namespaces; one should be allowed since it's in audit mode, while the other should be rejected because it's in enforce mode.
Signed-off-by: Franco <[email protected]>
cec5a40 to
02b53b8
Compare
|
I created the Chainsaw tests, will let it run and see how it goes 😄 |
Signed-off-by: Franco <[email protected]>
|
@MariamFahmy98 , anything else to be done here? Thanks 😄 |
|
This PR is labeled for 1.16 - does the |
Explanation
This PR implements the usage of namespaceSelector for failureActionOverrides inside the validate section of ClusterPolicies. This feature was previously available as part of validationFailureActionOverrides but since it's deprecation it stopped to work.
Related issue
Closes #11601
Milestone of this PR
Documentation (required for features)
My PR contains new or altered behavior to Kyverno.
What type of PR is this
/kind feature
Proof Manifests
Checklist
Further Comments