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

Commit

Permalink
Override RayJob configs
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jul 26, 2023
1 parent 3405f89 commit 6c9f374
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 @@ -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

0 comments on commit 6c9f374

Please sign in to comment.