From 94592bcadc6f96c98b6cac339830a74c004fb26d Mon Sep 17 00:00:00 2001 From: eweziyi Date: Fri, 3 Jan 2025 17:28:41 +0800 Subject: [PATCH] Add configmaps as a resource to the spark driver role rules --- api/turing/cluster/spark.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/turing/cluster/spark.go b/api/turing/cluster/spark.go index 8f869ec8e..35fbb9999 100644 --- a/api/turing/cluster/spark.go +++ b/api/turing/cluster/spark.go @@ -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