-
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
Fix: Handle overriding of container image in backend #4858
Fix: Handle overriding of container image in backend #4858
Conversation
8df6fe5
to
eb687b8
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4858 +/- ##
==========================================
+ Coverage 58.92% 58.94% +0.01%
==========================================
Files 645 645
Lines 55380 55398 +18
==========================================
+ Hits 32635 32652 +17
- Misses 20161 20163 +2
+ Partials 2584 2583 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f8b37d5
to
bd96c79
Compare
7f934cb
to
faf3d3e
Compare
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
4b0979d
to
53f1f4d
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, thank you!
* Add container image to TaskNodeOverrides proto Signed-off-by: Fabio Graetz <[email protected]> * Add container image override to v1alpha1.NodeSpec Signed-off-by: Fabio Graetz <[email protected]> * Override container image in pod Signed-off-by: Fabio Graetz <[email protected]> * Add unit test for creation of task node with image override Signed-off-by: Fabio Graetz <[email protected]> * Add unit test for building a pod with container image override Signed-off-by: Fabio Graetz <[email protected]> * Re-generate flytidl Signed-off-by: Fabio Graetz <[email protected]> * Mock GetContainerImage for ExecutableNode Signed-off-by: Fabio Graetz <[email protected]> * Make dask tests pass Signed-off-by: Fabio Graetz <[email protected]> * Lint Signed-off-by: Fabio Graetz <[email protected]> * Make kubeflow tests pass Signed-off-by: Fabio Graetz <[email protected]> * Make spark tests pass Signed-off-by: Fabio Graetz <[email protected]> * Make ray tests pass Signed-off-by: Fabio Graetz <[email protected]> * Fix remaining flyteplugins tests Signed-off-by: Fabio Graetz <[email protected]> * Add container test for image overriding Signed-off-by: Fabio Graetz <[email protected]> * Add container image override test for pytorch jobs Signed-off-by: Fabio Graetz <[email protected]> * Add ray test for container image overriding Signed-off-by: Fabio Graetz <[email protected]> * Re-generate flyteidl Signed-off-by: Fabio Graetz <[email protected]> * Add comment about container_image to TaskNodOverride proto Signed-off-by: Fabio Graetz <[email protected]> * Re-generate flyteidl Signed-off-by: Fabio Graetz <[email protected]> * Re-generate propeller Signed-off-by: Fabio Graetz <[email protected]> * Lint Signed-off-by: Fabio Graetz <[email protected]> * Re-generate flyteidl Signed-off-by: Fabio Graetz <[email protected]> --------- Signed-off-by: Fabio Graetz <[email protected]>
Tracking issue
#4543
Why are the changes needed?
The
container_image
task node override, among others, is currently broken (doesn't work withpyflyte register
and only once withpyflyte run
, see tracking issue.What changes were proposed in this pull request?
Add
container_image
toTaskNodeOverride
proto, set override inv1alpha1.NodeSpec
in flytepropeller and actually apply the image override in the pod spec.How was this patch tested?
Ran flyteadmin and flytepropeller on my dev machine. Was able to override container image in flytekit and confirm overridden image in the pod in the cluster.
I tested this for normal python function tasks, kubeflow pytorch elastic tasks, map tasks, and array node map tasks.
Added unit tests.
Check all the applicable boxes
Related PRs
flyteorg/flytekit#2176
Docs link