Skip to content

add raycluster controller to CFO #453

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
Show file tree
Hide file tree
Changes from 2 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
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a nit, but I'm not sure that's the right domain here if it's needed.

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