Skip to content

Commit

Permalink
add aggregating roles for ns admin and editor
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <[email protected]>
  • Loading branch information
KPostOffice committed Jan 25, 2024
1 parent 41833f2 commit 3f0f3f2
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions deployment/mcad-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,54 @@ spec:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: mcad-operator-clusterrole-edit
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups:
- workload.codeflare.dev
resources:
- schedulingspecs
- appwrappers
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: mcad-operator-clusterrole-admin
labels:
rbac.authorization.kubernetes.io/aggregate-to-admin: "true"
rules:
- apiGroups:
- quota.codeflare.dev
resources:
- quotasubtrees
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
Expand Down

0 comments on commit 3f0f3f2

Please sign in to comment.