Skip to content

Commit

Permalink
Update maestro-service-account.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
etaques authored Mar 27, 2024
1 parent 1304cca commit e035a8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions charts/orb/templates/maestro-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.maestro.rbac.serviceAccountName }}
name: k8s-maestro-sa
{{- if .Values.maestro.rbac.createServiceAccountTokenSecret }}
secrets:
- name: {{ .Release.Name }}-maestro-k8s-secret
Expand All @@ -14,7 +14,7 @@ kind: Secret
metadata:
name: {{ .Release.Name }}-maestro-k8s-secret
annotations:
kubernetes.io/service-account.name: {{ .Values.maestro.rbac.serviceAccountName }}
kubernetes.io/service-account.name: k8s-maestro-sa
type: kubernetes.io/service-account-token
{{ end }}
{{- if .Values.maestro.rbac.ClusterRoleBindingCreate }}
Expand All @@ -35,10 +35,10 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Values.maestro.rbac.serviceAccountName }}
name: k8s-maestro-rb
subjects:
- kind: ServiceAccount
name: {{ .Values.maestro.rbac.serviceAccountName }}
name: k8s-maestro-sa
namespace: {{ .Values.maestro.rbac.serviceAccountNamespace }}
roleRef:
kind: ClusterRole
Expand All @@ -62,11 +62,11 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Values.maestro.rbac.serviceAccountName }}
name: k8s-maestro-rb
namespace: {{ .Values.maestro.rbac.serviceAccountNamespace }}
subjects:
- kind: ServiceAccount
name: {{ .Values.maestro.rbac.serviceAccountName }}
name: k8s-maestro-sa
namespace: {{ .Values.maestro.rbac.serviceAccountNamespace }}
roleRef:
kind: Role
Expand Down

0 comments on commit e035a8a

Please sign in to comment.