sriov: add DRA resource inspection and lifecycle helpers #1795
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 247 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
Real PR Conversation Timeline
1 comments
"Review active on #1795"
general
weight: 0.35
LionelJouin
Summary
Add the library support needed by downstream SR-IOV DRA lifecycle coverage for CORENET-7535, based on operator PR #1151.
The DRA readers use the existing generic builders and the driver's pinned API types. Fake-client tests cover reads, filtering, update behavior, cancellation, and error propagation.
Evidence
go test ./pkg/sriovdra ./pkg/sriov ./pkg/daemonsetpasses locally on Go 1.27.4. Scoped lint passes with zero issues.Merge Danger
Door: two-way
Additive library APIs; existing callers retain their behavior.
Blast Radius: dependencies
Adds the pinned driver API dependency and generated vendor content. This supplies functional test helpers; security and CI-lane provisioning are separate CORENET-7535 deliverables.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added context-aware retrieval for DaemonSets and support for updating SR-IOV policies.
Added tools to retrieve and list SR-IOV device attributes and resource policies, including namespace and label filtering.
Resource operations now accept caller-provided contexts, allowing cancellation and timeouts to be respected.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->