-
Notifications
You must be signed in to change notification settings - Fork 834
feat(api): Add PodTemplateOverrides API into TrainJob #2785
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
feat(api): Add PodTemplateOverrides API into TrainJob #2785
Conversation
@xigang: GitHub didn't allow me to request PR reviews from the following users: mimowo. Note that only kubeflow members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
Pull Request Test Coverage Report for Build 18348353117Details
💛 - Coveralls |
@andreyvelich @tenzen-y PTAL. thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this @xigang!
Alright, I’ll go ahead and update the code. |
e1f8c2e
to
b5cec0f
Compare
/ok-to-test |
@andreyvelich @astefanutti The code has been updated. Please take another look, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
18651dd
to
41371bb
Compare
e09ce3f
to
bdb0e55
Compare
bdb0e55
to
1f50738
Compare
1f50738
to
aebc0d3
Compare
/retitle feat(api): Add PodTemplateOverrides API into TrainJob |
Sorry, I've been on vacation recently and replied late. I'll adjust it. |
Awesome, appreciate your time @xigang! |
448de4f
to
888dd64
Compare
@andreyvelich @tenzen-y @mimowo PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to update the section about PodSpecOverrides in docs/proposals/2170-kubeflow-trainer-v2/README.md
accordingly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you so much @xigang and maintainers, happy to see it will address kubernetes-sigs/kueue#7156 in 2.1 for Kubeflow and 0.15 in Kueue 👍
@astefanutti Thanks for the reminder. I’ll submit a separate PR for the PodSpecOverrides section in the 2170 proposal. |
888dd64
to
546331a
Compare
/retest |
/lgtm Thanks @xigang! |
if len(metadata) > 0 { | ||
podTemplatePatch["metadata"] = metadata | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this check ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check should be kept as it prevents adding empty metadata objects to the strategic merge patch. It's a defensive programming approach that ensures we only modify the patch when there's actual metadata to apply.
{ | ||
Name: "NEW_VALUE", | ||
Value: "from_overrides", | ||
TargetJobs: []trainer.PodTemplateOverrideTargetJob{{Name: constants.Node}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add labels/annotations to the this test case, to verify it is working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: xigang <wangxigang2014@gmail.com>
546331a
to
cbf2266
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this great effort!
/lgtm
/approve
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich, tenzen-y 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 |
What this PR does / why we need it:
Follow-up: #2784