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

rollandf / nvidia-k8s-ipam / 20091093193
54%
main: 53%

Build:
Build:
LAST BUILD BRANCH: go12411
DEFAULT BRANCH: main
Ran 10 Dec 2025 07:46AM UTC
Jobs 1
Files 46
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

10 Dec 2025 07:39AM UTC coverage: 54.131%. First build
20091093193

push

github

rollandf
feat: implement perNodeExclusions logic for IPPool and CIDRPool

Add logic to convert index-based perNodeExclusions to IP-based exclusions
in the ipam-node controllers. Each node converts its allocated IP range
exclusions independently and merges them with pool-wide exclusions.

Changes:
- Add buildPerNodeExclusions() to IPPool controller
  - Converts index-based exclusions to IP addresses for node's IP block
  - Merges with pool-wide exclusions before passing to allocator
- Add buildPerNodeExclusions() to CIDRPool controller
  - Converts index-based exclusions to IP addresses for node's prefix
  - Combines with filtered pool-wide exclusions
- Add unit tests

Implementation details:
- Each node processes only its own allocation (per-node)
- Index-based ranges are converted to IP-based ExclusionRange objects
- Ranges are clamped to node's allocation boundaries
- Ranges outside node's allocation are skipped
- Reuses existing allocator exclusion mechanism (no allocator changes)

Example:
  perNodeExclusions:
    - startIndex: 0
      endIndex: 10

Node-A (192.168.0.1-192.168.0.100) excludes 192.168.0.1-192.168.0.11
Node-B (192.168.0.101-192.168.0.200) excludes 192.168.0.101-192.168.0.111

Signed-off-by: Fred Rolland <frolland@nvidia.com>

52 of 62 new or added lines in 2 files covered. (83.87%)

2221 of 4103 relevant lines covered (54.13%)

9.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
89.38
pkg/ipam-node/controllers/cidrpool/cidrpool.go
6
34.18
pkg/ipam-node/controllers/ippool/ippool.go
Jobs
ID Job ID Ran Files Coverage
1 20091093193.1 10 Dec 2025 07:46AM UTC 46
54.13
GitHub Action Run
Source Files on build 20091093193
  • Tree
  • List 46
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20091093193
  • 177f9bfe on github
  • Next Build on pernodeexclusions (#20091146080)
  • Delete
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