feat: add gpu numa node attribute #1165
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 227 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1165"
general
weight: 0.35
killianmuldoon
<!-- Thanks for sending a pull request! See CONTRIBUTING.md for guidelines. -->
What type of PR is this?
/kind feature
What this PR does / why we need it:
This adds the standard
resource.kubernetes.io/numaNodeattribute to GPU, MIG, and VFIO GPU devices when NUMA locality is available.The attribute name and list-valued form follow KEP-6072: DRA Standard NUMA Node Attribute, while preserving scalar publication when
DRAListTypeAttributesis disabled for compatibility.The NUMA node is discovered from PCI sysfs via
nvpci.GetGPUByPciBusID(...), using the kernel PCI topology as the source of truth. If sysfs reports-1, the attribute is omitted because the NUMA locality is not configured.This standard attribute is expected to make it easier to write ResourceClaims that align GPUs with other DRA-provided devices on the same NUMA node as other drivers adopt the same attribute.
Which issue(s) this PR is related to:
N/A
Does this PR introduce a user-facing change?
``
release-noteresource.kubernetes.io/numaNodeAdd the standard
attribute to GPU, MIG, and VFIO GPU devices when NUMA locality is available.`docs
make check testChecklist
<!-- Tick what applies; leave others unchecked. CI re-runs some of these, but catching them locally shortens the review loop. -->
passes locally
make check-generatepasses ifapi/changed (CRDs, deepcopy, informers, listers, clientset)
make check-modulespasses ifgo.mod/go.sumchanged
Tests added or updated for the change
Helm chart ( deployments/helm`) updated if flags, RBAC, or defaults changed