-
Notifications
You must be signed in to change notification settings - Fork 83
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 panic when create spidermultusconfig with nil podRPFilter in validate webhook #4062
Fix panic when create spidermultusconfig with nil podRPFilter in validate webhook #4062
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4062 +/- ##
==========================================
+ Coverage 80.83% 80.88% +0.04%
==========================================
Files 51 51
Lines 4514 4514
==========================================
+ Hits 3649 3651 +2
+ Misses 699 698 -1
+ Partials 166 165 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
06385b5
to
b8e67d7
Compare
}).WithTimeout(time.Minute * 3).WithPolling(time.Second * 5).Should(BeNil()) | ||
}) | ||
|
||
It("set hostRPFilter and podRPFilter to a invalid value", Label("M00023"), func() { |
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.
这里有 M00023 ,但是 test/doc 中缺少用例。
@@ -23,4 +23,5 @@ | |||
| M00019 | set spidermultusconfig.spec to empty and see if works | p3 | | done | | | |||
| M00020 | annotating custom names that are too long or empty should fail | p3 | | done | | | |||
| M00021 | create a spidermultusconfig and pod to verify chainCNI json config if works | p3 | | done | | | |||
| M00022 | test podRPFilter and hostRPFilter in spidermultusconfig | p3 | | done | |
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.
缺少 M00023
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.
done
b8e67d7
to
f8271d2
Compare
Signed-off-by: cyclinder <[email protected]>
f8271d2
to
bc0f86a
Compare
Fix panic when create spidermultusconfig with nil podRPFilter in validate webhook Signed-off-by: robot <[email protected]>
Fix panic when create spidermultusconfig with nil podRPFilter in validate webhook Signed-off-by: robot <[email protected]>
Thanks for contributing!
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #4061
Special notes for your reviewer: