-
Notifications
You must be signed in to change notification settings - Fork 680
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 broken gpu resource override when using pod templates #4925
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,8 @@ func FlyteTaskToBatchInput(ctx context.Context, tCtx pluginCore.TaskExecutionCon | |
if platformResources == nil { | ||
platformResources = &v1.ResourceRequirements{} | ||
} | ||
|
||
flytek8s.SanitizeGPUResourceRequirements(res) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This function is called internally in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the current state of the PR, the sanitation doesn't happen in |
||
resources := flytek8s.ApplyResourceOverrides(*res, *platformResources, assignResources) | ||
|
||
submitJobInput := &batch.SubmitJobInput{} | ||
|
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.
Is it safe to make this change? IIUC the arguments to
ApplyResourceOverrides
will have "gpu" rather than "nvidia/gpu" currently?