-
Notifications
You must be signed in to change notification settings - Fork 386
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 nil error issue #4154
Fix nil error issue #4154
Conversation
/test-multicluster-e2e |
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.
We should back-port this to the 1.8 patch release.
sure, I will backport it after it's merged. thanks. |
Codecov Report
@@ Coverage Diff @@
## main #4154 +/- ##
==========================================
- Coverage 65.08% 63.27% -1.82%
==========================================
Files 303 304 +1
Lines 46561 46626 +65
==========================================
- Hits 30304 29501 -803
- Misses 13903 14774 +871
+ Partials 2354 2351 -3
|
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.
could you take the chance to add unit test for this case?
5bc099a
to
0e4948b
Compare
/test-multicluster-e2e |
admission.Errored doesn't handle nil error case, it will raise a nil pointer error when there is no ClusterSet found. Fix it with a new error with error message. Refactor unit test and add a few more test cases. Signed-off-by: Lan Luo <luola@vmware.com>
0e4948b
to
bb89c75
Compare
/skip-networkpolicy |
admission.Errored doesn't handle nil error case, it will raise a nil pointer error when there is no ClusterSet found. Fix it with a new error with error message. Refactor unit test and add a few more test cases. Signed-off-by: Lan Luo <luola@vmware.com>
admission.Errored doesn't handle nil error case, it will raise a nil
pointer error when there is no ClusterSet found.
Fix it with a new error with error message.
Refactor unit test and add a few more test cases.
Signed-off-by: Lan Luo luola@vmware.com