Respect driver upgrade policy during orphan pod migration #3164
All Vouch review confidence checks passed
Residual risk 0.35 = Change Risk (0.66) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 368 lines diff across 4 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
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #3164"
general
weight: 0.35
rahulait
Description
During migration to an NVIDIADriver with
upgradePolicy.autoUpgrade: false, node labeling requests an upgrade for orphaned driver pods while the upgrade controller removes that request. Check the owning driver's effective upgrade policy in the migration flow before settingupgrade-required, keeping driver ownership independent of upgrade eligibility.Emit a
ManualDriverPodReplacementRequiredWarning event on the NVIDIADriver, with the orphaned pod as the related object and the node/pod names in the message. Enabled and defaulted policies retain automatic migration; disabled policies leave pod replacement to the administrator.Fixes #3063. This is a separate alternative to #3082 with manual-action feedback and repeated-reconcile coverage.
Checklist
make lint)Testing
make fmt,make license-check,make unit-test(23 packages, including build), andmake lintpass on Linux/amd64 with Go 1.26.8. Lint reports zero issues.upgrade-requiredin each of three cycles; the fixed build kept the label absent and recorded the real Warning event. The orphan pod kept its UID throughout.The live test isolates this label-policy bug. It does not exercise containerized-driver installation/replacement or controller watch delivery; the BCM host driver remained loaded.
<!-- devin-review-badge-begin -->
---
<a href="https://nvidia-cloud.devinenterprise.com/review/nvidia/gpu-operator/pull/3164" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->