Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Override RayJob configs #380

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go/tasks/plugins/k8s/ray/ray.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (rayJobResourceHandler) BuildResource(ctx context.Context, taskCtx pluginsC
return nil, flyteerr.Errorf(flyteerr.BadTaskSpecification, "nil task specification")
}

config := taskTemplate.GetConfig()
rayJob := plugins.RayJob{}
err = utils.UnmarshalStruct(taskTemplate.GetCustom(), &rayJob)
if err != nil {
Expand Down Expand Up @@ -149,6 +150,7 @@ func (rayJobResourceHandler) BuildResource(ctx context.Context, taskCtx pluginsC
RuntimeEnv: rayJob.RuntimeEnv,
}

objectMeta.Namespace = config["namespace"]
rayJobObject := rayv1alpha1.RayJob{
TypeMeta: metav1.TypeMeta{
Kind: KindRayJob,
Expand Down
Loading