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

Commit

Permalink
Merge 6c9f374 into 445fc58
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw authored Oct 3, 2023
2 parents 445fc58 + 6c9f374 commit 591d066
Showing 1 changed file with 2 additions and 0 deletions.
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 @@ -51,6 +51,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 @@ -168,6 +169,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

0 comments on commit 591d066

Please sign in to comment.