Skip to content

feat: add imagePullPolicy to pytorchjob-generator #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

garrett361
Copy link
Contributor

@garrett361 garrett361 commented Apr 17, 2025

Issue link

What changes have been made

Add the ability to specify the imagePullPolicy for the master and worker nodes. Very useful for dev speed and iterating building dev images.

Comments:

  • I wasn't sure how to update the tests.
  • I didn't touch _helpers.tpl; wasn't quite sure how it's used or how to edit it properly.

Verification steps

Tested by specifying imagePullPolicy: Always, verifying the job runs (previously, it would error if imagePullPolicy was specified), and verified that imagePullPolicy was properly set in the job. Also verified that the same job runs if the imagePullPolicy is omitted, and that the field defaults to imagePullPolicy: IfNotPresent.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

@garrett361 garrett361 force-pushed the main branch 4 times, most recently from 7e8f0c6 to 6370df6 Compare April 17, 2025 14:01
@garrett361 garrett361 force-pushed the main branch 2 times, most recently from 46e04a0 to 2baaa58 Compare April 17, 2025 14:30
@dgrove-oss dgrove-oss merged commit ad10c6e into project-codeflare:main Apr 17, 2025
1 check 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.

2 participants