Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: e356161 <[email protected]>
  • Loading branch information
peterghaddad committed Oct 28, 2024
1 parent 00df7cd commit a69d469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/k8s/ray/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ func TestLoadDefaultServiceAccountConfig(t *testing.T) {

t.Run("serviceAccount", func(t *testing.T) {
config := GetConfig()
assert.Equal(t, config.ServiceAccount, "default")
assert.Equal(t, config.ServiceAccount, "")
})
}
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/k8s/ray/ray.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func constructRayJob(taskCtx pluginsCore.TaskExecutionContext, rayJob plugins.Ra
}

serviceAccountName := flytek8s.GetServiceAccountNameFromTaskExecutionMetadata(taskCtx.TaskExecutionMetadata())
if len(serviceAccountName) == 0 {
if len(serviceAccountName) == 0 || cfg.ServiceAccount != "" {
serviceAccountName = cfg.ServiceAccount
}

Expand Down

0 comments on commit a69d469

Please sign in to comment.