-
Notifications
You must be signed in to change notification settings - Fork 776
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
fix: generate policy exception events #5987
Conversation
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
/cherry-pick release-1.9 |
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.
Please have a look, @realshuting
pkg/event/events.go
Outdated
Name: exceptionName, | ||
Namespace: exceptionNamespace, | ||
Reason: PolicySkipped.String(), | ||
Message: messageBuilder.String(), |
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.
Can we also add policy information?
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.
Good catch ! Will fix soon.
Codecov Report
@@ Coverage Diff @@
## main #5987 +/- ##
=======================================
Coverage 35.86% 35.87%
=======================================
Files 193 193
Lines 21078 21075 -3
=======================================
Hits 7560 7560
+ Misses 12684 12681 -3
Partials 834 834
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Cherry-pick failed with |
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: Charles-Edouard Brétéché charles.edouard@nirmata.com
Explanation
This PR fixes policy exception events.