Skip to content
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

fix: imagePullPolicy was ignored #2222

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

missedone
Copy link
Contributor

@missedone missedone commented Oct 6, 2024

Purpose of this PR

Close #2221

Proposed changes:

  • return the image option args properly

Change Category

Indicate the type of change by marking the applicable boxes:

  • Bugfix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that could affect existing functionality)
  • Documentation update

Checklist

Before submitting your PR, please review the following:

  • I have conducted a self-review of my own code.
  • I have updated documentation accordingly.
  • I have added tests that prove my changes are effective or that my feature works.
  • Existing unit tests pass locally with my changes.

Additional Notes

@missedone
Copy link
Contributor Author

better to enable the submission test and add the test case to perform regression test in the future

https://github.com/kubeflow/spark-operator/blob/release-2.0/internal/controller/sparkapplication/submission_test.go

@missedone
Copy link
Contributor Author

missedone commented Oct 7, 2024

updated the PR to better handle various cases, especially when spec.image is not set, but spark.kubernetes.driver.container.image and/or spark.kubernetes.executor.container.image is set, in this case, the spec.imagePullPolicy should be applied to driver and/or executor image as well

@google-oss-prow google-oss-prow bot added size/M and removed size/XS labels Oct 7, 2024
@ChenYi015 ChenYi015 changed the title fix #2221: imagePullPolicy was ignored fix: imagePullPolicy was ignored Oct 8, 2024
@ChenYi015
Copy link
Contributor

@missedone Thanks for reporting and fixing this issue. Could you change the target branch of this PR to the master branch? We will cherry pick this PR when we do the next release.

@ChenYi015 ChenYi015 linked an issue Oct 8, 2024 that may be closed by this pull request
1 task
@missedone missedone changed the base branch from release-2.0 to master October 8, 2024 02:27
@missedone missedone closed this Oct 8, 2024
@missedone missedone reopened this Oct 8, 2024
Signed-off-by: xuqingtan <missedone@gmail.com>
@missedone
Copy link
Contributor Author

@ChenYi015 , sure, PR is updated to target master branch

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ChenYi015

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ChenYi015
Copy link
Contributor

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Oct 8, 2024
@google-oss-prow google-oss-prow bot merged commit 7fb14e6 into kubeflow:master Oct 8, 2024
8 checks passed
@missedone missedone deleted the fix/2221 branch October 8, 2024 03:37
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.

[BUG] imagePullPolicy doesn't work on spark-operator 2.0.0
2 participants