Skip to content

Commit

Permalink
add aggregator role for 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 f2575cd commit e214398
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ray-operator/config/rbac/editor_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kuberay-edit-role
labels:
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules:
- apiGroups:
- ray.io
resources:
- rayjobs
- rayclusters
- rayservices
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
1 change: 1 addition & 0 deletions ray-operator/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resources:
- editor_role.yaml
- role.yaml
- role_binding.yaml
- leader_election_role.yaml
Expand Down

0 comments on commit e214398

Please sign in to comment.