-
Notifications
You must be signed in to change notification settings - Fork 658
Rego: add support for custom error/warning messages when evaluating rego rules #2577
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2577 +/- ##
==========================================
+ Coverage 30.05% 30.15% +0.10%
==========================================
Files 141 141
Lines 8662 8688 +26
==========================================
+ Hits 2603 2620 +17
- Misses 5678 5684 +6
- Partials 381 384 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
1e97ded to
a4785c9
Compare
mattmoor
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.
Mostly nits, excited to play around this this!
Do we need to update any published docs to cover this?
Signed-off-by: Hector Fernandez <[email protected]>
Signed-off-by: Hector Fernandez <[email protected]>
Signed-off-by: Hector Fernandez <[email protected]>
21ca8cb to
9060ac3
Compare
Signed-off-by: Hector Fernandez <[email protected]>
Signed-off-by: Hector Fernandez [email protected]
Summary
This PR adds support for handling more complex evaluation rules in Rego. It enables to return custom warning or error messages following a new template:
closes: #2570
Release Note
Documentation