-
Notifications
You must be signed in to change notification settings - Fork 784
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: policy status reconciliation #10032
fix: policy status reconciliation #10032
Conversation
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10032 +/- ##
=========================================
- Coverage 9.96% 9.96% -0.01%
=========================================
Files 1029 1029
Lines 91674 91686 +12
=========================================
- Hits 9134 9132 -2
- Misses 81542 81555 +13
- Partials 998 999 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
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.
LGTM
Signed-off-by: ShutingZhao <shuting@nirmata.com>
@MariamFahmy98 - I fixed the chainsaw tests, please take a look. |
/cherry-pick release-1.12 |
* fix: get latest policy object before updating status Signed-off-by: ShutingZhao <shuting@nirmata.com> * chore: remove debug code Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: ShutingZhao <shuting@nirmata.com>
Explanation
This PR fixes policy status updates during webhook reconciliation by getting the latest policy object before sending update requests.
Related issue
Closes #10021.
Milestone of this PR
/1.12.0
Documentation (required for features)
My PR contains new or altered behavior to Kyverno.
What type of PR is this
/kind bug
Proposed Changes
Proof Manifests
Checklist
Further Comments