feat(gpu): select the GPU vendor with features.gpu.vendor #3792
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 593 lines diff across 7 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.382
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3792"
general
weight: 0.35
gjulianm
What does this PR do?
Adds
features.gpu.vendor, the vendor of the GPUs on the nodes:nvidia(default) oramd, validated as an enum. Replaces #3767 (features.gpu.amd.enabled), which is closed.With
vendor: amd:DD_GPU_AMD_ENABLED=trueandAMD_VISIBLE_DEVICES=all. User-set values win.requiredRuntimeClassName, the pod gets no RuntimeClass and uses the node's default runtime.DD_ENABLE_NVML_DETECTION,NVIDIA_VISIBLE_DEVICES, thenvidia-container-devicesmount,MKNOD, and the GKE COS driver-lib mount.The minimum Agent version for each vendor is set in the
vendorMinAgentVersiontable.After (this PR):
Equivalent today (without this PR):
|
vendor|requiredRuntimeClassName| Pod RuntimeClass | AMD env vars | NVIDIA settings | Warning ||---|---|---|---|---|---|
| unset or
nvidia| unset |nvidia| no | yes | no || unset or
nvidia| any value | that value | no | yes | no ||
amd| unset |""(node default runtime) | yes, on Agent 7.86+ | no | no ||
amd|nvidia|nvidia| yes, on Agent 7.86+ | no | yes ||
amd|amdor another value | that value | yes, on Agent 7.86+ | no | no ||
amd|""|""| yes, on Agent 7.86+ | no | no ||
amdon GKE Autopilot | any | same asnvidia| no | yes | no |Unset or
nvidiais identical to main. Below Agent 7.86,vendor: amdstill sets the RuntimeClass and skips the NVIDIA settings, but adds no AMD env vars. GKE Autopilot ignoresvendor. Any other value is rejected by the CRD.Motivation
Agent 7.86 ships an opt-in
amd_gpucore check. Today it needsrequiredRuntimeClassNameplus manual env overrides. AMD tooling doesn't define a standard Kubernetes RuntimeClass, so the vendor is selected explicitly.The setting is a single value because the node-agent DaemonSet has one RuntimeClass. For clusters with several GPU vendors, use a
DatadogAgentProfileper node pool.Additional Notes
vendorMinAgentVersion). A new vendor (TPU next) only needs a table entry and its env vars.spec.override.nodeAgent.imageand the experimental image override.spec.override.nodeAgent.runtimeClassNamestill wins.vendor: amdwithrequiredRuntimeClassName: nvidia. It's an operator log line on each reconcile and never blocks reconciliation.Minimum Agent Versions
Agent: v7.86.0 for the AMD check (
vendor: amd).Cluster Agent: n/a
Describe your test plan
feature/gpu/feature_test.go):- vendor unset,
nvidiaandamd, each with the RuntimeClass unset,nvidia,amdand""- NVIDIA env vars, mounts,
MKNODand the GKE COS driver libs are skipped foramd, including on system-probe in privileged mode- Agent 7.85, 7.86.0-rc.3, non-semver tags and image overrides
- GKE Autopilot
- user env and
override.nodeAgent.runtimeClassNamewin- the
amd+nvidiawarning (capturing logger)- a test vendor added to the version table
go test ./...(root andapi/) andmake lintpass.-
vendor: amdwith no RuntimeClass gaveamd_gpu [OK], and the data arrived in Datadog.-
amd+amd,amd+nvidia, vendor unset and Agent 7.85.2 matched the expected pod spec.- KSM was disabled for the test, because chart 2.32.0 lacks the DRA RBAC that operator main needs (#3703).
- The review changes (NVIDIA settings skipped, RuntimeClass below 7.86, enum) are covered by unit tests only.
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits