ROX-33090: Align policy exclusions with inclusions#19848
ROX-33090: Align policy exclusions with inclusions#19848
Conversation
|
Skipping CI for Draft Pull Request. |
🚀 Build Images ReadyImages are ready for commit a04c76d. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-568-ga04c76d32c |
🚀 Build Images ReadyImages are ready for commit 8db31fb. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-567-g8db31fb532 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19848 +/- ##
==========================================
- Coverage 49.60% 49.59% -0.02%
==========================================
Files 2763 2766 +3
Lines 208339 208530 +191
==========================================
+ Hits 103344 103412 +68
- Misses 97331 97447 +116
- Partials 7664 7671 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
pedrottimark
left a comment
There was a problem hiding this comment.
These changes build on your previous contributions so that business logic and conditional rendering are much clearer to review than I remember from time past.
|
@bradr5: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
Description
Adds a dedicated exclusion scope card in the policy wizard (when not on the legacy label based scoping path) and lines it up with the inclusion scope UX.
PolicyScopeshape as inclusions (same backendstorage.Scope), aligning with the backend proto. While the backend currently ignores cluster and namespace labels for exclusions, those fields still exist in the proto and are shared across inclusion and exclusion scopes.scope: nullwhen building server exclusions. This also addresses a long standing edge case bug where clearing fields after typing could fail Central validation due to a non-null scope.nullbefore sendUser-facing documentation
Testing and quality
Automated testing
How I validated my change
Inclusions:

Exclusions:
