-
Notifications
You must be signed in to change notification settings - Fork 780
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
feat: add a cleanup cronjob to delete urs #10249
Conversation
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10249 +/- ##
=======================================
Coverage 10.22% 10.22%
=======================================
Files 1031 1031
Lines 91905 91905
=======================================
+ Hits 9395 9397 +2
+ Misses 81481 81480 -1
+ Partials 1029 1028 -1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: ShutingZhao <shuting@nirmata.com>
/cherry-pick release-1.12 |
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.
Should we delete all UpdateRequests or delete only those past the threshold? Like by age or something.
I delete all urs in this PR and rely on the force reconciliation to remediate any missing events. |
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Explanation
This PR adds a cleanup cronjob to remove urs, the threshold is set to 10000 by default which can be configured via Helm.
Related issue
Closes #10244.
Related #10308.
Milestone of this PR
/1.12.3
Documentation (required for features)
My PR contains new or altered behavior to Kyverno.
What type of PR is this
Proposed Changes
Proof Manifests
Checklist
Further Comments