Skip to content

Commit e1af880

Browse files
committed
add raycluster controller to CFO
Signed-off-by: Kevin <[email protected]>
1 parent 1264faa commit e1af880

13 files changed

+50619
-170
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/crd/test/crd-route.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
# name must match the spec fields below, and be in the form: <plural>.<group>
5+
name: routes.route.openshift.io
6+
spec:
7+
# group name to use for REST API: /apis/<group>/<version>
8+
group: route.openshift.io
9+
# list of versions supported by this CustomResourceDefinition
10+
versions:
11+
- name: v1
12+
# Each version can be enabled/disabled by Served flag.
13+
served: true
14+
# One and only one version must be marked as the storage version.
15+
storage: true
16+
schema:
17+
openAPIV3Schema:
18+
type: object
19+
x-kubernetes-preserve-unknown-fields: true
20+
additionalPrinterColumns:
21+
- name: Host
22+
type: string
23+
jsonPath: .status.ingress[0].host
24+
- name: Admitted
25+
type: string
26+
jsonPath: .status.ingress[0].conditions[?(@.type=="Admitted")].status
27+
- name: Service
28+
type: string
29+
jsonPath: .spec.to.name
30+
- name: TLS
31+
type: string
32+
jsonPath: .spec.tls.type
33+
subresources:
34+
# enable spec/status
35+
status: {}
36+
# either Namespaced or Cluster
37+
scope: Namespaced
38+
names:
39+
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
40+
plural: routes
41+
# singular name to be used as an alias on the CLI and for display
42+
singular: route
43+
# kind is normally the CamelCased singular type. Your resource manifests use this.
44+
kind: Route

0 commit comments

Comments
 (0)