Skip to content

upgrade_controller: nil-check DrainSpec before dereferencing PodSelector#2419

Closed
SAY-5 wants to merge 1 commit intoNVIDIA:mainfrom
SAY-5:fix/upgrade-drainspec-nil-2417
Closed

upgrade_controller: nil-check DrainSpec before dereferencing PodSelector#2419
SAY-5 wants to merge 1 commit intoNVIDIA:mainfrom
SAY-5:fix/upgrade-drainspec-nil-2417

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 2, 2026

Closes #2417. ClusterPolicy with autoUpgrade: true and no drain section had UpgradePolicy.DrainSpec == nil; the PodSelector access panicked every reconcile. Initialize the spec on first use.

Closes NVIDIA#2417. ClusterPolicy with autoUpgrade:true and no drain section panics the upgrade controller every reconcile.

Signed-off-by: SAY-5 <say.apm35@gmail.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 2, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@SAY-5 SAY-5 force-pushed the fix/upgrade-drainspec-nil-2417 branch from cdcdaf5 to 51c240f Compare May 2, 2026 09:58
@rahulait
Copy link
Copy Markdown
Contributor

rahulait commented May 2, 2026

Thanks @SAY-5 . We already have a PR open with the fix #2418. Closing this PR in favor of older PR.

@rahulait rahulait closed this May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nil pointer panic in upgrade controller when DrainSpec is not set in ClusterPolicy

2 participants