-
Notifications
You must be signed in to change notification settings - Fork 53
Enable pod template and Use copy to construct head/worker in ray plugin #349
Conversation
Codecov Report
@@ Coverage Diff @@
## master #349 +/- ##
==========================================
+ Coverage 62.77% 64.18% +1.40%
==========================================
Files 148 148
Lines 12664 10283 -2381
==========================================
- Hits 7950 6600 -1350
+ Misses 4105 3073 -1032
- Partials 609 610 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
So calling ToK8sPodSpec
does a lot of things, like injecting Flyte-specific customizations. I think the original implementation decided to call ToK8sContainer
directly to keep these out of the Pod definition. I just want to make sure that all of this additional Pod construction logic will not introduce regressions.
The alternative is to call MergeWithBasePodTemplate
similar to here which just merges the PodSpec
with the default PodTemplate (if exists). This was purposefully refactored to ensure the default PodTemplate could be applied to any PodSpec
.
cc @pingsutw thoughts? |
Also @bstadlbauer, whatever we decide to do here (ie. applying default |
@hamersaw Sounds good to me 👍 Should I start right away or wait on this PR? |
@bstadlbauer it looks like the dask plugin will call the MergeWithBasePodTemplate function directly because we're building the Just trying to keep some semblance of consistency across the Flyte maintained plugins. Very interested in hearing thoughts from all involved! |
The reason we use
I think all the k8s plugins should use |
Signed-off-by: byhsu <[email protected]>
Signed-off-by: byhsu <[email protected]>
Signed-off-by: byhsu <[email protected]>
Signed-off-by: byhsu <[email protected]>
…in (#349) * Enable pod template and Use copy to construct head/worker in ray plugin Signed-off-by: byhsu <[email protected]> * fix linit Signed-off-by: byhsu <[email protected]> * wip Signed-off-by: byhsu <[email protected]> * fix test Signed-off-by: byhsu <[email protected]> --------- Signed-off-by: byhsu <[email protected]> Co-authored-by: byhsu <[email protected]>
Type
Are all requirements met?
Complete description
Why?
Volume
) when constructing worker/head pod because it created a new container from scratchWhat?
flytek8s.ToK8sPodSpec
to parse both container and pod type