Skip to content

Commit

Permalink
add raycluster controller to CFO
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <[email protected]>
  • Loading branch information
KPostOffice authored and openshift-merge-bot[bot] committed Apr 3, 2024
1 parent 2b5d9b8 commit 91f8bf3
Show file tree
Hide file tree
Showing 12 changed files with 1,001 additions and 172 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN go mod download
# Copy the Go sources
COPY main.go main.go
COPY pkg/ pkg/
COPY controllers/ controllers/

# Build
USER root
Expand Down
10 changes: 10 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Code generated by tool. DO NOT EDIT.
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: codeflare.dev
layout:
- go.kubebuilder.io/v3
Expand All @@ -6,4 +10,10 @@ plugins:
scorecard.sdk.operatorframework.io/v2: {}
projectName: codeflare-operator
repo: github.com/project-codeflare/codeflare-operator
resources:
- controller: true
domain: codeflare.dev
group: ray
kind: RayCluster
version: v1
version: "3"
2 changes: 2 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ resources:
- admin_role.yaml
- editor_role.yaml
- service_account.yaml
- mcad_manager_role.yaml
- mcad_manager_role_binding.yaml
- role.yaml
- role_binding.yaml
- instascale_role.yaml
Expand Down
223 changes: 223 additions & 0 deletions config/rbac/mcad_manager_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manual-manager-role
rules:
- apiGroups:
- '*'
resources:
- deployments
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
- jobs
verbs:
- create
- delete
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
- replicasets
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- config.openshift.io
resources:
- clusterversions
verbs:
- get
- list
- apiGroups:
- coordination.k8s.io
resources:
- kube-scheduler
- leases
verbs:
- create
- get
- update
- apiGroups:
- ""
resources:
- bindings
- pods/binding
verbs:
- create
- apiGroups:
- ""
resources:
- configmaps
- nodes
- persistentvolumeclaims
- persistentvolumes
- secrets
- serviceaccounts
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- endpoints
- kube-scheduler
verbs:
- create
- get
- update
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- ""
resources:
- kube-scheduler
verbs:
- get
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods/status
verbs:
- patch
- update
- apiGroups:
- ""
resources:
- replicationcontrollers
verbs:
- get
- list
- watch
- apiGroups:
- events.k8s.io
resources:
- events
- kube-scheduler
verbs:
- create
- patch
- update
- apiGroups:
- machine.openshift.io
resources:
- '*'
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- scheduling.sigs.k8s.io
resources:
- podgroups
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- storage.k8s.io
resources:
- csidrivers
- csinodes
- csistoragecapacities
verbs:
- get
- list
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers
- appwrappers/finalizers
- appwrappers/status
- schedulingspecs
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- quota.codeflare.dev
resources:
- quotasubtrees
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
12 changes: 12 additions & 0 deletions config/rbac/mcad_manager_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: manual-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: manual-manager-role
subjects:
- kind: ServiceAccount
name: controller-manager
namespace: system
Loading

0 comments on commit 91f8bf3

Please sign in to comment.