Skip to content

Honor spec.gds.imagePullPolicy in NVIDIADriver DaemonSet - #3216

Merged
rahulait merged 1 commit into
NVIDIA:mainfrom
Ajax-1:fix-gds-image-pull-policy
Nov 13, 2026
Merged

rahulait merged 1 commit into
NVIDIA:mainfrom
Ajax-1:fix-gds-image-pull-policy

Conversation

@Ajax-1

@Ajax-1 Ajax-1 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Fixes #3200

Description

The nvidia-fs-ctr container in manifests/state-driver/0500_daemonset.yaml hardcoded imagePullPolicy: IfNotPresent, so spec.gds.imagePullPolicy on an NVIDIADriver was ignored. It now renders the configured value and falls back to IfNotPresent, the same way the GDRCopy container does.

The ClusterPolicy path (assets/state-driver) already handles this and is unchanged.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Added TestDriverGDSImagePullPolicy in internal/state/driver_test.go. It renders the driver DaemonSet with GDS enabled and checks the nvidia-fs-ctr pull policy for omitted, IfNotPresent, Always and Never. Without the template change, the Always and Never cases fail. The existing driver-gds golden file is unchanged, since the policy is omitted there.

  • make unit-test passes
  • make lint passes

Devin Review

@Ajax-1
Ajax-1 requested a review from a team as a code owner November 10, 2026 08:18
@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 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.

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The GDS container’s image pull policy now uses the configured value and defaults to IfNotPresent when omitted. A rendering test checks omitted, IfNotPresent, Always, and Never values.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 0ba4a

The GDS DaemonSet appears to honor configured image pull policies while retaining the omitted-value default. No merge-blocking issue is identified.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0555534 and 0ba4ac6.

Files selected for processing: 2

  • internal/state/driver_test.go
  • manifests/state-driver/0500_daemonset.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@rahulait

Copy link
Copy Markdown
Contributor

Thanks @Ajax-1, please make sure your commits are signed.

@Ajax-1
Ajax-1 force-pushed the fix-gds-image-pull-policy branch from 0ba4ac6 to 6baaf84 Compare November 13, 2026 11:07
The nvidia-fs-ctr container hardcoded imagePullPolicy to IfNotPresent,
so the policy set in NVIDIADriver spec.gds.imagePullPolicy was ignored.
Render the configured value and keep IfNotPresent as the default,
matching the GDRCopy container.

Signed-off-by: Ajax-1 <85230126+Ajax-1@users.noreply.github.com>
@Ajax-1

Ajax-1 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Signed the commit with SSH and force-pushed. GitHub now shows it as Verified.

I also signed the commit on #3215 the same way.

@rahulait

Copy link
Copy Markdown
Contributor

/ok to test 6baaf84

@rahulait
rahulait enabled auto-merge November 13, 2026 18:04
@rahulait
rahulait merged commit 0addf2f into NVIDIA:main Nov 13, 2026
21 checks passed
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.

[gpu-op] NVIDIADriver ignores spec.gds.imagePullPolicy

2 participants