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

[RayJob]: Always use target RayCluster image as default RayJob submitter image #1548

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

astefanutti
Copy link
Contributor

Related issue number

Closes #1547.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@astefanutti
Copy link
Contributor Author

@kevin85421 @z103cb @blublinsky for your review, thanks.

Copy link
Contributor

@blublinsky blublinsky left a comment

Choose a reason for hiding this comment

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

LGTM

Image: image,
Name: "ray-job-submitter",
// Use the image of the Ray head to be defensive against version mismatch issues
Image: rayClusterInstance.Spec.HeadGroupSpec.Template.Spec.Containers[0].Image,
Resources: v1.ResourceRequirements{
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice
We can now remove the check in the API server

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! Would you mind adding some unit tests for the function?

ray-operator/controllers/ray/common/job.go Outdated Show resolved Hide resolved
@kevin85421 kevin85421 self-assigned this Oct 19, 2023
@astefanutti
Copy link
Contributor Author

Thank you for the contribution! Would you mind adding some unit tests for the function?

@kevin85421 I've added a unit test and re-pushed. PTAL.

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

Great! Thanks!

@kevin85421 kevin85421 merged commit 631cd7c into ray-project:master Oct 20, 2023
23 checks passed
@astefanutti astefanutti deleted the pr-03 branch October 20, 2023 17:14
kevin85421 pushed a commit to kevin85421/kuberay that referenced this pull request Nov 2, 2023
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.

[Feature] Always use RayCluster image for default RayJob submitter image
3 participants