Skip to content

Add ClusterRole and ClusterRoleBinding for KubeRay #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ resources:
- instascale_role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- mcad-controller-ray-clusterrolebinding.yaml
- mcad-controller-ray-clusterrole.yaml
31 changes: 31 additions & 0 deletions config/rbac/mcad-controller-ray-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: mcad-controller-ray-clusterrole
rules:
- apiGroups:
- ray.io
resources:
- rayclusters
- rayclusters/finalizers
- rayclusters/status
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
12 changes: 12 additions & 0 deletions config/rbac/mcad-controller-ray-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mcad-controller-ray-clusterrolebinding
subjects:
- kind: ServiceAccount
name: codeflare-operator-controller-manager
namespace: openshift-operators
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mcad-controller-ray-clusterrole