-
Notifications
You must be signed in to change notification settings - Fork 670
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
Remove storage as a task resource option #4658
Remove storage as a task resource option #4658
Conversation
Signed-off-by: Future Outlier <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4658 +/- ##
==========================================
+ Coverage 58.54% 58.57% +0.02%
==========================================
Files 625 624 -1
Lines 53669 53595 -74
==========================================
- Hits 31423 31393 -30
+ Misses 19731 19688 -43
+ Partials 2515 2514 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Future Outlier <[email protected]>
@katrogan Please take a look, thanks a lot! |
this is fantastic! cc @eapolinario for flytekit owners review |
Hi, @katrogan can we merge it? |
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 can we remove storage from here
flyte/flyteadmin/pkg/manager/impl/util/resources.go
Lines 69 to 71 in a23b266
if len(spec.Storage) > 0 { | |
result.Storage = parseQuantityNoError(ctx, "project", "storage", spec.Storage) | |
} |
flyte/flyteadmin/pkg/workflowengine/impl/prepare_execution.go
Lines 88 to 90 in a23b266
if !taskResources.Defaults.Storage.IsZero() { | |
requests.Storage = taskResources.Defaults.Storage | |
} |
cc @eapolinario
I think the copilot will not be affected by it right? |
hey @Future-Outlier what do you mean by "I think the copilot will not be affected by it right?" Sorry not entirely following! |
Signed-off-by: Future-Outlier <[email protected]>
I was initially concerned that removing the |
Just remove all of them, thanks a lot! |
… remove-storage-in-task-resource-option
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 so much for verifying and refactoring all the tests!
Tracking issue
Fixes #3955
Why are the changes needed?
Make the storage unused in the task resource option, so that users will not be confused about why they can define the storage but it didn't work.
What changes were proposed in this pull request?
search strings here
Search variable like this.
flytek8s/copilot.go
as the same, I am not sure about how it works, so I left it the same.How was this patch tested?
kubectl describe nodeId
to check if theResources
as expectedSuccess Scenario
The output is below.
Failure Scenario
Related PRs
flyteorg/flytekit#2078
Docs link