This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new b418dd1 [SPARK-57917] Fix workload RoleBinding name in operator
namespace
b418dd1 is described below
commit b418dd1646dae6996aa6c4299ddeaa363e22ac86
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Jul 2 17:32:13 2026 -0700
[SPARK-57917] Fix workload RoleBinding name in operator namespace
### What changes were proposed in this pull request?
This PR fixes the workload `RoleBinding` name in `workload-rbac.yaml` to use
`$workloadResources.roleBinding.name` instead of
`$workloadResources.serviceAccount.name`
when `workloadResources.namespaces.data` is empty, consistent with the
per-namespace branch.
### Why are the changes needed?
The `RoleBinding` was named `spark` (the service account name) instead of
the intended
`spark-workload-rolebinding`.
### Does this PR introduce _any_ user-facing change?
Yes. The `RoleBinding` in the operator namespace is now named
`spark-workload-rolebinding`
instead of `spark`.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
Closes #739 from dongjoon-hyun/dongjoon/nervous-leavitt-747dd2.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml
b/build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml
index 479d04b..3479865 100644
--- a/build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml
+++ b/build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml
@@ -144,7 +144,7 @@ metadata:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
- name: {{ $workloadResources.serviceAccount.name }}
+ name: {{ $workloadResources.roleBinding.name }}
namespace: {{ $systemNs }}
{{- template "spark-operator.workloadLabelsAnnotations" $ }}
{{- template "spark-operator.workloadRoleRef" $ }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]