Skip to content

Commit 55a1905

Browse files
committed
[SPARK-53909] Fix RBAC to allow Spark driver to create StatefulSet
### What changes were proposed in this pull request? This PR aims to fix RBAC to allow `Spark` driver to create `StatefulSet`. ### Why are the changes needed? We need to fix this to allow Apache Spark's `StatefulSetPodsAllocator` which was introduced at Apache Spark 3.3.0. - apache/spark#33508 ### Does this PR introduce _any_ user-facing change? No, this is an additional permission. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #389 from dongjoon-hyun/SPARK-53909. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent d55e51b commit 55a1905

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ rules:
2727
- persistentvolumeclaims
2828
verbs:
2929
- '*'
30+
- apiGroups:
31+
- "apps"
32+
resources:
33+
- statefulsets
34+
verbs:
35+
- '*'
3036
{{- end }}
3137

3238
{{/*

0 commit comments

Comments
 (0)