refactor(labeler): move NVIDIA detection to nvidia-labeler #2566
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2566"
general
weight: 0.35
lalitadithya
Summary
Implements ADR-077: the labeler splits into two Deployments. Part of #2419.
nvidia-labeler(new module and image) writesdcgm.version,driver.installedand thedcgm-bootstrap-completedannotation. It watches the DCGM, driver and GKE driver installer pods, with the same flags, metric names and selectors as before.labelerkeepskata.enabledand the device counts. It no longer watches pods, and its ClusterRole has no pod rules.Each binary writes and removes only its own labels. On an opted-out node (
managed: "false"), each removes its own labels.nvidiaLabeler.enabledandnvidiaLabeler.imageare new. The umbrella chart refuseslabeler.nvidiaLabeler.enabled: falsewhile the GPU, syslog or NIC health monitor, or metadata-collector, is enabled.labeler_events_processed_totalandlabeler_event_handling_duration_secondsare now reported only bynvidia-labeler. Both reportlabeler_node_update_failures_totalandlabeler_node_labels_skipped_managed_total.depguardrule stopslabelerfrom importingnvidia-labeler.nvidia-labelerfor the DCGM and driver labels.Testing
Kind cluster
Three nodes, with fake GPU Operator pods: node A has a driver pod and a DCGM 4.x pod; node B has a GKE driver installer pod and the Kata runtime label. The labeler chart was installed alone.
helm upgrademoved to this branch. On every node,managedFieldsshows each NVIDIA label, the Kata label and the bootstrap annotation last written by the old labeler, before the upgrade. Neither new binary logged a label write.- Removing the DCGM pod from node A removed only
dcgm.version; restoring the pod set4.xagain.-
managed=falseon node A removeddcgm.versionanddriver.installed(written bynvidia-labeler) andkata.enabled(written bylabeler). Removing the opt-out restored all three.-
kubectl auth can-i list pods: no for thelabelerServiceAccount, yes fornvidia-labeler.- Each pod reports the metrics listed above.
helm rollbackdeleted thenvidia-labelerDeployment, ServiceAccount and RBAC. Every label kept its value, and the old labeler wrote nothing.GPU cluster
A GKE cluster with 18 GB200 nodes and 3 CPU system nodes. The GPU nodes get
driver.installedfrom the GKE driver installer pods. I rendered the labeler chart from this branch with the release's own values, applied it, and later restored the original objects. A watch recorded the NVSentinel labels on all nodes throughout.dcgm.version=4.x,driver.installed=true,kata.enabled=falseand the bootstrap annotation, and 3 nodes withkata.enabled=false. Afterwards, the NVSentinel labels and annotations on all 21 nodes matched the snapshot taken before the test.nvidia-labelerreported 36 processed pod events and no update failures. The labeler reported only its node metrics. The labeler's ClusterRole had no pod rules.driver.installedfrom 4 GPU nodes, because the GKE installer pod cache was still filling. The DaemonSet controller deleted the metadata-collector and syslog health monitor pods on those nodes. The label came back about 2 seconds later, and the pods were running again within 3 seconds.nvidia-labelerskips events until all its caches have synced, so it does not do this.Umbrella guard
On a Kind cluster,
helm installrefuses to turn offnvidia-labelerwhile a component that selects nodes on its labels is enabled. Both rejected installs left no release and no objects in the namespace.With
--dry-run=server(andpodMonitor.enabled=false, because Kind has no PodMonitor CRD), these installs are accepted:nvidia-labeleroff, with the GPU, syslog and NIC health monitors and metadata-collector off: only thelabelerDeployment renders.global.labeler.enabled=false: the check is skipped, and neither Deployment renders.labelerandnvidia-labelerrender.Behaviour to note
nvidia-labelerskips pod and node events until its informers have synced, with no API call, and reconciles every node after the sync. Before, a pod event during startup could removedriver.installedwhile another pod cache was still filling.nvidia-labelerreconciles a node whendcgm.versionordriver.installedchanges, as well asmanagedandnvidia.com/gpu.present. If someone sets one of these labels on an opted-out node,nvidia-labelerremoves it, so the monitors do not schedule back. The combined labeler did this only as a side effect: with device counts on, it reconciled on almost any label change. Its own writes cause one more reconcile, which finds nothing to change and makes no API call.Type of Change
Component(s) Affected
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added an NVIDIA labeler deployment, enabled by default, to detect DCGM versions and driver status and apply corresponding node labels.
Disabling it is blocked while enabled components depend on its labels.
Changes
The existing labeler now handles Kata detection and device-count labels; it no longer watches pods or manages NVIDIA detection labels.
Each labeler removes its own detection labels from nodes opted out of management.
Pod-event metrics are reported by the NVIDIA labeler; device-count metrics remain with the existing labeler.
Documentation
* Updated configuration, metrics, deployment, and operational guides to clarify each labeler’s responsibilities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->