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 in spidercoordinator informer #3269

Conversation

cyclinder
Copy link
Collaborator

@cyclinder cyclinder commented Mar 1, 2024

Thanks for contributing!

What type of PR is this?

What this PR does / why we need it:

Fix panic in spidercoordinator informer: if the serviceCIDR resource can't be list, the serviceCIDRLister should be nil, in the case, we update the service cidr of the spidercoordinator.status from k8s service cidr.

Which issue(s) this PR fixes:

Fixes #3263

Special notes for your reviewer:

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.62%. Comparing base (e0ccf2f) to head (e16d008).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3269      +/-   ##
==========================================
+ Coverage   81.12%   81.62%   +0.50%     
==========================================
  Files          50       50              
  Lines        5372     5372              
==========================================
+ Hits         4358     4385      +27     
+ Misses        856      825      -31     
- Partials      158      162       +4     
Flag Coverage Δ
unittests 81.62% <ø> (+0.50%) ⬆️

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

see 1 file with indirect coverage changes

@cyclinder
Copy link
Collaborator Author

weizhoublue
weizhoublue previously approved these changes Mar 1, 2024
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
@cyclinder cyclinder force-pushed the spidercoorinator/fix_panici_coordinator_informer branch from cde5d8e to e16d008 Compare March 1, 2024 10:28
@weizhoublue weizhoublue added cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. and removed cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. labels Mar 1, 2024
@ty-dc ty-dc merged commit 7f1901c into spidernet-io:main Mar 1, 2024
47 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 1, 2024
…oordinator_informer

Fix panic in spidercoordinator informer

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coordinator informer panic
3 participants