Skip to content

Commit

Permalink
update sa
Browse files Browse the repository at this point in the history
  • Loading branch information
peterghaddad committed Oct 28, 2024
1 parent 1f90ff9 commit 0367e2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/k8s/ray/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
Defaults: DefaultConfig{
HeadNode: NodeConfig{
StartParameters: map[string]string{
// Disable usage reporting by default: https://docs.ray.io/en/latest/cluster/deusage-stats.html
// Disable usage reporting by default: https://docs.ray.io/en/latest/cluster/usage-stats.html
DisableUsageStatsStartParameter: "true",
},
IPAddress: "$MY_POD_IP",
Expand Down
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 0367e2c

Please sign in to comment.