spidernet-io / spiderpool

Underlay and RDMA network solution of the Kubernetes, for bare metal, VM and any public cloud
https://spidernet-io.github.io/spiderpool/
Apache License 2.0
539 stars 75 forks source link

fix: optimize the cleanup code judgment of NotFound resources #4162

Closed weizhoublue closed 1 month ago

weizhoublue commented 1 month ago

robot cherry pick PR https://github.com/spidernet-io/spiderpool/pull/4156 from ty-dc,to branch release-v1.0, action https://github.com/spidernet-io/spiderpool/actions/runs/11285383726 , commits 6a708dd9fa86f9bfeb629ad28ce1890403fdc984

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.21%. Comparing base (8ed04d3) to head (2bef136). Report is 2 commits behind head on release-v1.0.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/4162/graphs/tree.svg?width=650&height=150&src=pr&token=YKXY2E4Q8G&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io)](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/4162?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io) ```diff @@ Coverage Diff @@ ## release-v1.0 #4162 +/- ## ============================================= Coverage 81.21% 81.21% ============================================= Files 50 50 Lines 4413 4413 ============================================= Hits 3584 3584 Misses 671 671 Partials 158 158 ``` | [Flag](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/4162/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/4162/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io) | `81.21% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io#carryforward-flags-in-the-pull-request-comment) to find out more.