Skip to content
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

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

cyclinder
Copy link
Collaborator

Thanks for contributing!

What type of PR is this?

  • release/bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4061

Special notes for your reviewer:

@cyclinder cyclinder added cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. cherrypick-release-v0.9 cherrypick-release-v1.0 Cherry-pick the PR to branch release-v1.0. labels Sep 14, 2024
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.88%. Comparing base (b64851c) to head (f8271d2).
Report is 20 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
unittests 80.88% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

}).WithTimeout(time.Minute * 3).WithPolling(time.Second * 5).Should(BeNil())
})

It("set hostRPFilter and podRPFilter to a invalid value", Label("M00023"), func() {
Copy link
Collaborator

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 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缺少 M00023

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
@cyclinder cyclinder merged commit 603c57e into spidernet-io:main Sep 19, 2024
53 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 19, 2024
Fix panic when create spidermultusconfig with nil podRPFilter in validate webhook

Signed-off-by: robot <tao.yang@daocloud.io>
github-actions bot pushed a commit that referenced this pull request Sep 19, 2024
Fix panic when create spidermultusconfig with nil podRPFilter in validate webhook

Signed-off-by: robot <tao.yang@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. cherrypick-release-v0.9 cherrypick-release-v1.0 Cherry-pick the PR to branch release-v1.0. release/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: validate webhook for create spidermultusconfig
3 participants