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

Mellanox / network-operator / 23810671614

31 Mar 2026 05:27PM UTC coverage: 62.086% (+0.3%) from 61.776%
23810671614

push

github

web-flow
feat: add NicNodePolicy CRD for per-node-group DOCA driver management (#2279)

Add comprehensive support for heterogeneous clusters where different
node
groups require different DOCA driver versions via NicNodePolicy (NNP).

Webhook validation:
- Section conflict detection prevents same component (ofedDriver,
  rdmaSharedDevicePlugin, sriovDevicePlugin) in both NCP and NNP
- Node selector overlap detection rejects NNPs targeting the same nodes
- Runtime overlap re-check catches drift from node re-labeling

DaemonSet isolation:
- Unique DS/ConfigMap names via NameSuffix (e.g. mofed-...-gpu-nodes-ds)
- ds-owner label on both DaemonSet and pod template for ownership
tracking
- Node discovery scoped by NNP nodeSelector to avoid phantom DaemonSets

mofed.wait label management:
- NNP controller sets mofed.wait based on OFED pod readiness on its
nodes
- NCP fallback path excludes NNP-managed nodes from label cleanup
- NNP deletion keeps mofed.wait=true while pods terminate, then
converges

DOCA driver upgrade:
- Per-NNP upgrade state managers with isolated requestor IDs
- NCP upgrade cleanup scoped to exclude NNP-managed nodes

Controller deduplication:
- Shared NicPolicyCR status accessors for polymorphic status updates
- Extracted helpers: requeueWithDelay, updatePolicyCRStatus,
  setupOFEDCatalog, watchStateSources
- ResolveNodesByPolicy as single source of truth for node resolution

Also adds heterogeneous-cluster-support.md with architecture docs
and mermaid flowcharts.

804 of 1193 new or added lines in 27 files covered. (67.39%)

22 existing lines in 7 files now uncovered.

4834 of 7786 relevant lines covered (62.09%)

43.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.05
/controllers/hostdevicenetwork_controller.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc