Skip to content

Commit

Permalink
Add configmaps as a resource to the spark driver role rules (caraml-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts authored Jan 3, 2025
1 parent 47ba388 commit 2725429
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/turing/cluster/spark.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ var DefaultSparkDriverRoleRules = []apirbacv1.PolicyRule{
"*",
},
},
{
// Allow driver to manage configmaps
APIGroups: []string{
"", // indicates the core API group
},
Resources: []string{
"configmaps",
},
Verbs: []string{
"*",
},
},
}

// CreateSparkRequest is the request for creating a spark driver
Expand Down

0 comments on commit 2725429

Please sign in to comment.