[Flyte 7198] Enabling flyte plugins#7259
Conversation
|
@0yukali0 is it ready to be reviewed? |
|
Hi @pingsutw |
Signed-off-by: Yuteng Chen <a08h0283@gmail.com>
Signed-off-by: yuteng chen <a08h0283@gmail.com>
Signed-off-by: yuteng chen <a08h0283@gmail.com>
Signed-off-by: yuteng chen <a08h0283@gmail.com>
|
Hi @pingsutw , this PR is ready. |
| - echo | ||
| default-for-task-types: | ||
| # -- Executor-specific plugin configuration (read by the executor binary, not propeller) | ||
| executor: |
There was a problem hiding this comment.
Could we keep the same (tasks/task-plugins)? will make people easy to migrate to v2
| utilruntime.Must(clientgoscheme.AddToScheme(scheme)) | ||
| utilruntime.Must(flyteorgv1.AddToScheme(scheme)) | ||
| utilruntime.Must(rayv1.AddToScheme(scheme)) | ||
| utilruntime.Must(sparkOp.AddToScheme(scheme)) |
There was a problem hiding this comment.
do we still need to add schema here?
There was a problem hiding this comment.
Hi @pingsutw.
I encountered into a problem that scheme not found when i removed these.
i think is that controller-runtime manager won't recognize schemes if initialization in setup.go doesn't register them.
| _ "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/plugins/k8s/kfoperators/pytorch" | ||
| _ "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/plugins/k8s/kfoperators/tensorflow" | ||
| _ "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/plugins/k8s/pod" | ||
| _ "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/plugins/k8s/ray" |
There was a problem hiding this comment.
could we add these to loader.go
https://github.com/flyteorg/flyte/blob/master/flytepropeller/plugins/loader.go
| allowed := executorConfig.GetConfig().EnabledPlugins | ||
| isAllowed := func(id string) bool { | ||
| if len(allowed) == 0 { | ||
| return true | ||
| } | ||
| return slices.Contains(allowed, id) |
There was a problem hiding this comment.
We could add a helper function and return a PluginConfigMeta
flyte/flytepropeller/pkg/controller/nodes/task/config/config.go
Lines 66 to 75 in cd7371f
Signed-off-by: Yuteng Chen <a08h0283@gmail.com>
Signed-off-by: Yuteng Chen <a08h0283@gmail.com>
Tracking issue
Close #7198
Why are the changes needed?
Flyte v2 OSS won't trigger ray, dask, spark, torch, tensorflow and mpi plugins
What changes were proposed in this pull request?
How was this patch tested?
Labels
This is important to improve the readability of release notes.
Setup process
spark_role.yaml
Screenshots
Check all the applicable boxes
Related PRs
Docs link
main