• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeovn / kube-ovn / 28633980013
27%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2026 02:18AM UTC
Jobs 1
Files 217
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 02:14AM UTC coverage: 27.391% (+0.2%) from 27.172%
28633980013

push

github

web-flow
feat: support per-pod IP family selection (#6950)

* feat: support per-pod IP family selection

Allow pods and attachment networks to request IPv4-only or IPv6-only allocation on dual-stack subnets via ip_family annotations. Keep existing dual-stack behavior when the annotation is omitted and add unit coverage for controller, IPAM, validation, and CNI mask handling.

Signed-off-by: jimyag <git@jimyag.com>

* fix: address IP family review feedback

Preserve subnet DHCP options when pod IP family cannot be determined and add coverage for the empty pod IP case. Also log gateway family mismatches and clarify CNI single-family mask behavior in tests.

Signed-off-by: jimyag <git@jimyag.com>

* refactor: clarify IP family helper intent

Rename CNI gateway and DHCP helper functions to describe their IP-family behavior. Add comments explaining why CNI and DHCP paths follow the actual allocated pod address families.

Signed-off-by: jimyag <git@jimyag.com>

* test: cover IP family review gaps

Validate per-interface static IP annotations against provider-scoped ip_family and add controller coverage for named IPPool allocation with requested IPv6 family.

Signed-off-by: jimyag <git@jimyag.com>

* refactor: derive IP family annotation values from protocol constants

Avoid hard-coded lowercase ip family strings by deriving accepted annotation values from kube-ovn protocol constants while preserving the lowercase-only validation contract.

Signed-off-by: jimyag <git@jimyag.com>

* refactor: avoid implying fixed dual-stack lengths

Use zero-value slices where single-family and dual-stack paths can append one or two entries, making the allocation and CNI mask code reflect the actual variable cardinality.

Signed-off-by: jimyag <git@jimyag.com>

* fix: handle IP family review edge cases

Parse static IPs before family validation so malformed addresses return parse errors. Also make subnet family errors provider-neutral and reject malformed CNI CIDRs without panics.

Si... (continued)

161 of 207 new or added lines in 8 files covered. (77.78%)

16558 of 60451 relevant lines covered (27.39%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
19.41
2.58% pkg/controller/pod.go
8
88.64
-0.44% pkg/ipam/ipam.go
4
2.89
2.89% pkg/daemon/handler.go
4
91.47
-0.36% pkg/util/net.go
3
94.19
-0.13% pkg/util/validator.go
2
92.21
-0.15% pkg/ipam/subnet.go
2
88.89
-11.11% pkg/util/address_family.go
1
6.04
0.0% pkg/controller/ip.go
Jobs
ID Job ID Ran Files Coverage
1 28633980013.1 03 Jul 2026 02:18AM UTC 217
27.39
GitHub Action Run
Source Files on build 28633980013
  • Tree
  • List 217
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6f1793c6 on github
  • Prev Build on master (#28569385112)
  • Next Build on master (#28634787952)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc