Skip to content

Commit 2a1de75

Browse files
committed
add raycluster controller to CFO
Signed-off-by: Kevin <[email protected]>
1 parent 2b5d9b8 commit 2a1de75

12 files changed

+1001
-172
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN go mod download
1010
# Copy the Go sources
1111
COPY main.go main.go
1212
COPY pkg/ pkg/
13+
COPY controllers/ controllers/
1314

1415
# Build
1516
USER root

PROJECT

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Code generated by tool. DO NOT EDIT.
2+
# This file is used to track the info used to scaffold your project
3+
# and allow the plugins properly work.
4+
# More info: https://book.kubebuilder.io/reference/project-config.html
15
domain: codeflare.dev
26
layout:
37
- go.kubebuilder.io/v3
@@ -6,4 +10,10 @@ plugins:
610
scorecard.sdk.operatorframework.io/v2: {}
711
projectName: codeflare-operator
812
repo: github.com/project-codeflare/codeflare-operator
13+
resources:
14+
- controller: true
15+
domain: codeflare.dev
16+
group: ray
17+
kind: RayCluster
18+
version: v1
919
version: "3"

config/rbac/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ resources:
77
- admin_role.yaml
88
- editor_role.yaml
99
- service_account.yaml
10+
- mcad_manager_role.yaml
11+
- mcad_manager_role_binding.yaml
1012
- role.yaml
1113
- role_binding.yaml
1214
- instascale_role.yaml

config/rbac/mcad_manager_role.yaml

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
creationTimestamp: null
6+
name: manual-manager-role
7+
rules:
8+
- apiGroups:
9+
- '*'
10+
resources:
11+
- deployments
12+
- services
13+
verbs:
14+
- create
15+
- delete
16+
- get
17+
- list
18+
- patch
19+
- update
20+
- watch
21+
- apiGroups:
22+
- batch
23+
resources:
24+
- jobs
25+
verbs:
26+
- create
27+
- delete
28+
- list
29+
- patch
30+
- update
31+
- watch
32+
- apiGroups:
33+
- apps
34+
resources:
35+
- deployments
36+
- replicasets
37+
- statefulsets
38+
verbs:
39+
- create
40+
- delete
41+
- get
42+
- list
43+
- patch
44+
- update
45+
- watch
46+
- apiGroups:
47+
- authentication.k8s.io
48+
resources:
49+
- tokenreviews
50+
verbs:
51+
- create
52+
- apiGroups:
53+
- authorization.k8s.io
54+
resources:
55+
- subjectaccessreviews
56+
verbs:
57+
- create
58+
- apiGroups:
59+
- config.openshift.io
60+
resources:
61+
- clusterversions
62+
verbs:
63+
- get
64+
- list
65+
- apiGroups:
66+
- coordination.k8s.io
67+
resources:
68+
- kube-scheduler
69+
- leases
70+
verbs:
71+
- create
72+
- get
73+
- update
74+
- apiGroups:
75+
- ""
76+
resources:
77+
- bindings
78+
- pods/binding
79+
verbs:
80+
- create
81+
- apiGroups:
82+
- ""
83+
resources:
84+
- configmaps
85+
- nodes
86+
- persistentvolumeclaims
87+
- persistentvolumes
88+
- secrets
89+
- serviceaccounts
90+
- services
91+
verbs:
92+
- create
93+
- delete
94+
- get
95+
- list
96+
- patch
97+
- update
98+
- watch
99+
- apiGroups:
100+
- ""
101+
resources:
102+
- endpoints
103+
- kube-scheduler
104+
verbs:
105+
- create
106+
- get
107+
- update
108+
- apiGroups:
109+
- ""
110+
resources:
111+
- events
112+
verbs:
113+
- create
114+
- patch
115+
- update
116+
- apiGroups:
117+
- ""
118+
resources:
119+
- kube-scheduler
120+
verbs:
121+
- get
122+
- update
123+
- apiGroups:
124+
- ""
125+
resources:
126+
- pods
127+
verbs:
128+
- create
129+
- delete
130+
- deletecollection
131+
- get
132+
- list
133+
- patch
134+
- update
135+
- watch
136+
- apiGroups:
137+
- ""
138+
resources:
139+
- pods/status
140+
verbs:
141+
- patch
142+
- update
143+
- apiGroups:
144+
- ""
145+
resources:
146+
- replicationcontrollers
147+
verbs:
148+
- get
149+
- list
150+
- watch
151+
- apiGroups:
152+
- events.k8s.io
153+
resources:
154+
- events
155+
- kube-scheduler
156+
verbs:
157+
- create
158+
- patch
159+
- update
160+
- apiGroups:
161+
- machine.openshift.io
162+
resources:
163+
- '*'
164+
verbs:
165+
- create
166+
- delete
167+
- get
168+
- list
169+
- patch
170+
- update
171+
- watch
172+
- apiGroups:
173+
- scheduling.sigs.k8s.io
174+
resources:
175+
- podgroups
176+
verbs:
177+
- create
178+
- delete
179+
- deletecollection
180+
- get
181+
- list
182+
- patch
183+
- update
184+
- watch
185+
- apiGroups:
186+
- storage.k8s.io
187+
resources:
188+
- csidrivers
189+
- csinodes
190+
- csistoragecapacities
191+
verbs:
192+
- get
193+
- list
194+
- watch
195+
- apiGroups:
196+
- workload.codeflare.dev
197+
resources:
198+
- appwrappers
199+
- appwrappers/finalizers
200+
- appwrappers/status
201+
- schedulingspecs
202+
verbs:
203+
- create
204+
- delete
205+
- deletecollection
206+
- get
207+
- list
208+
- patch
209+
- update
210+
- watch
211+
- apiGroups:
212+
- quota.codeflare.dev
213+
resources:
214+
- quotasubtrees
215+
verbs:
216+
- create
217+
- delete
218+
- deletecollection
219+
- get
220+
- list
221+
- patch
222+
- update
223+
- watch
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: manual-manager-rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: manual-manager-role
9+
subjects:
10+
- kind: ServiceAccount
11+
name: controller-manager
12+
namespace: system

0 commit comments

Comments
 (0)