everoute / ipam

everoute ipam for everoute cni and ecp cni
1 stars 1 forks source link

feat: allocate ip support except and start end #37

Closed qingwusunny closed 6 months ago

qingwusunny commented 6 months ago
  1. 添加ippool controller,修改ippool spec后将offset置0
  2. 分配IP时,如果offset>ip池的IP数,报错
codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 75.38462% with 32 lines in your changes are missing coverage. Please review.

Project coverage is 72.27%. Comparing base (f5056ff) to head (6e8c937).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/everoute/ipam/pull/37/graphs/tree.svg?width=650&height=150&src=pr&token=ol7PVNGwvq&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute)](https://app.codecov.io/gh/everoute/ipam/pull/37?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute) ```diff @@ Coverage Diff @@ ## main #37 +/- ## ========================================== + Coverage 72.04% 72.27% +0.23% ========================================== Files 10 11 +1 Lines 887 992 +105 ========================================== + Hits 639 717 +78 - Misses 199 219 +20 - Partials 49 56 +7 ``` | [Files](https://app.codecov.io/gh/everoute/ipam/pull/37?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute) | Coverage Δ | | |---|---|---| | [api/ipam/v1alpha1/types.go](https://app.codecov.io/gh/everoute/ipam/pull/37?src=pr&el=tree&filepath=api%2Fipam%2Fv1alpha1%2Ftypes.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute#diff-YXBpL2lwYW0vdjFhbHBoYTEvdHlwZXMuZ28=) | `100.00% <100.00%> (ø)` | | | [pkg/ipam/net\_conf.go](https://app.codecov.io/gh/everoute/ipam/pull/37?src=pr&el=tree&filepath=pkg%2Fipam%2Fnet_conf.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute#diff-cGtnL2lwYW0vbmV0X2NvbmYuZ28=) | `91.85% <100.00%> (-0.06%)` | :arrow_down: | | [pkg/ipam/ipam.go](https://app.codecov.io/gh/everoute/ipam/pull/37?src=pr&el=tree&filepath=pkg%2Fipam%2Fipam.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute#diff-cGtnL2lwYW0vaXBhbS5nbw==) | `73.93% <78.57%> (+0.30%)` | :arrow_up: | | [pkg/controller/ippool.go](https://app.codecov.io/gh/everoute/ipam/pull/37?src=pr&el=tree&filepath=pkg%2Fcontroller%2Fippool.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=everoute#diff-cGtnL2NvbnRyb2xsZXIvaXBwb29sLmdv) | `63.49% <63.49%> (ø)` | |