-
Notifications
You must be signed in to change notification settings - Fork 370
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 syncHandler issue in status_controller #2036
Conversation
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, this wasn't caught by any unit test?
It seems that there is no UT covering this specific case |
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.
Thanks for fixing it!
Codecov Report
@@ Coverage Diff @@
## main #2036 +/- ##
===========================================
+ Coverage 41.69% 55.64% +13.95%
===========================================
Files 127 265 +138
Lines 15844 19773 +3929
===========================================
+ Hits 6606 11003 +4397
+ Misses 8684 7603 -1081
- Partials 554 1167 +613
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test-all |
/test-e2e |
Fix the issue when the status_controller tries to update NetworkPolicyStatus to Pending, it always assumes the policy is Antrea NetworkPolicy instead of Antrea ClusterNetworkPolicy. This will result in failures in status updates which are visible at lowest klog verbose level.