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

rollandf / sriov-network-operator / 23792371600

31 Mar 2026 10:19AM UTC coverage: 62.915% (-0.1%) from 63.017%
23792371600

push

github

rollandf
feat: integrate dra-driver-sriov as device-plugin alternative

Add optional Dynamic Resource Allocation mode behind the
dynamicResourceAllocation feature gate: deploy the SR-IOV DRA driver instead
of the network device plugin, and keep SR-IOV configuration aligned with
Multus/NAD-oriented networking.

Deployment & RBAC
- Add bindata manifests under bindata/manifests/dra-driver/: basic DeviceClass,
  ServiceAccount, ClusterRole/Role (incl. pod access), ClusterRoleBinding,
  DaemonSet with init container (image from SRIOV_DRA_DRIVER_IMAGE /
  SRIOV_NETWORK_CONFIG_DAEMON_IMAGE).
- Extend operator and Helm chart ClusterRoles for DRA driver APIs and
  resource.k8s.io DeviceClass management.
- Chart: sriovDraDriver image value and operator env wiring.

CRDs
- Vendor SriovResourcePolicy and DeviceAttributes CRDs (chart + test util)
  aligned with dra-driver-sriov.

Operator controllers
- SriovOperatorConfig: when DRA is enabled, sync DRA driver objects and skip
  device-plugin DaemonSet path; when disabled, tear down DRA DaemonSet and
  related sync uses device plugin as today.
- SriovNetworkNodePolicy: when DRA is enabled, generate/sync DeviceAttributes
  (per resource pool), SriovResourcePolicy (per node) from SriovNetworkNodePolicy,
  extended-resource DeviceClass objects (resource.k8s.io), with cleanup when
  policies or DRA mode change; keep existing device-plugin ConfigMap flow when
  DRA is off.
- Helper: syncDRADriverObjs, cleanupDRADriverObjs, GetNodeSelectorForDRADriver.

Config daemon
- Discover and coordinate with sriov-dra-driver pods (labels/behavior) alongside
  existing device-plugin logic.

Dependencies & API
- Add github.com/k8snetworkplumbingwg/dra-driver-sriov module and register
  SriovResourcePolicy / DeviceAttributes types in the manager scheme.

Documentation
- Add doc/design/DRA-integration.md and extend doc/advanced-features.md for
  the DRA feature gate and behavior.

Tests
- Extend controller tests for DRA sync/cleanup paths and h... (continued)

358 of 673 new or added lines in 4 files covered. (53.19%)

371 existing lines in 7 files now uncovered.

9787 of 15556 relevant lines covered (62.91%)

0.7 hits per line

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

77.49
/controllers/generic_network_controller.go


Source Not Available

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