use app and worker service accounts in role binding

Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
This commit is contained in:
Pascal Sthamer
2025-02-19 12:36:47 +01:00
parent 2edd3be85f
commit af2d58155c
8 changed files with 2 additions and 6 deletions
@@ -8,11 +8,9 @@ metadata:
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
# Deployed shuffle apps will use the default service account. There is currently no way to change that.
# https://github.com/Shuffle/Shuffle/pull/1421#issuecomment-2382623260
subjects:
- kind: ServiceAccount
name: default
name: {{ include "shuffle.app.serviceAccountName" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
@@ -8,11 +8,9 @@ metadata:
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
# Deployed shuffle workers will use the default service account. There is currently no way to change that.
# https://github.com/Shuffle/Shuffle/pull/1421#issuecomment-2382623260
subjects:
- kind: ServiceAccount
name: default
name: {{ include "shuffle.worker.serviceAccountName" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role