Skip to content

[release-26.7] fix[device-plugin] add DEVICE_LIST_STRATEGY env var guardrail - #3107

Merged
rahulait merged 1 commit into
release-26.7from
backport-3081-to-release-26.7
Oct 23, 2026
Merged

rahulait merged 1 commit into
release-26.7from
backport-3081-to-release-26.7

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Automated backport of #3081 to release-26.7

✅ Cherry-pick completed successfully with no conflicts.

Original PR: #3081
Original Author: @tariq1890

Cherry-picked commits (1):

  • 54cc02c fix[device-plugin] add DEVICE_LIST_STRATEGY env var guardrail

This backport was automatically created by the backport bot.


Devin Review

This commit adds additional validation to the devicePlugin operand
transformation logic. When CDI is enabled, it is required that the
DEVICE_LIST_STRATEGY env var value includes one of
"cdi-annotations" and "cdi-cri". While the current transformation code
adds these values to DEVICE_LIST_STRATEGY when .spec.cdi.enabled is true,
the same resolved value gets overridden when the gpu-operator user sets
the DEVICE_LIST_STRATEGY env var explicitly in the devicePlugin section
of the ClusterPolicy custom resource.

This changes addresses a major limitation in the gpu-operator where
feedback from an invalid devicePlugin config  only happens at gpu pod
workload scheduling which is a significant delay. This provides a poor
UX as users waste hours debugging the containerCreate failures instead
of identifying the invalid devicePlugin config. This fix changes that by
failing at the ClusterPolicy reconcile stage.

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
(cherry picked from commit 54cc02c)
@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

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.

@tariq1890

Copy link
Copy Markdown
Contributor

/ok to test 8247b00

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread controllers/transforms_test.go
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 39.21% (+0.05%) from 39.16% — backport-3081-to-release-26.7 into release-26.7

@rahulait
rahulait merged commit ed22103 into release-26.7 Oct 23, 2026
22 checks passed
@tariq1890
tariq1890 deleted the backport-3081-to-release-26.7 branch October 23, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants