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
503 stars 72 forks source link

Fix: Statefulset pod should change IP when recreating with a changed pool in annotation #3674

Closed weizhoublue closed 3 days ago

weizhoublue commented 3 days ago

robot cherry pick PR https://github.com/spidernet-io/spiderpool/pull/3669 from lou-lan,to branch release-v0.8, action https://github.com/spidernet-io/spiderpool/actions/runs/9710884374 , commits 2a50107c11a742109ca1c3f016243bb8fc4220e7

codecov[bot] commented 3 days ago

Codecov Report

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

Project coverage is 80.93%. Comparing base (cafc2a7) to head (b43fa4e).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/3674/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/3674?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-v0.8 #3674 +/- ## ================================================ - Coverage 80.99% 80.93% -0.06% ================================================ Files 49 49 Lines 5382 5382 ================================================ - Hits 4359 4356 -3 - Misses 862 864 +2 - Partials 161 162 +1 ``` | [Flag](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/3674/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/3674/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io) | `80.93% <ø> (-0.06%)` | :arrow_down: | 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. [see 1 file with indirect coverage changes](https://app.codecov.io/gh/spidernet-io/spiderpool/pull/3674/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spidernet-io)