-
Notifications
You must be signed in to change notification settings - Fork 431
[Bug] fix: separate CRDs from application manifests #1184
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,11 +238,15 @@ endif | |
|
||
.PHONY: install | ||
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config. | ||
## Install all CRDs using kubectl create to avoid size limitation problems like for Ray CRDs. | ||
$(KUBECTL) create -k config/crd/ || true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reason to not split make install into two commands was that in public release, we want to keep installation simple for end users and not ask them to do make install. Public release has one command for dependency.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using create will have problem in future if we want to update the crd definition for ray objects. Thats why we changed to use --server-side in v0.3.0 release which does throw error for large size object. |
||
## helm creates objects without aibrix prefix, hence deploying gateway components outside of kustomization | ||
## This target also handles the KubeRay Operator components included in config/dependency | ||
$(KUBECTL) apply -k config/dependency --server-side | ||
|
||
.PHONY: uninstall | ||
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. | ||
$(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -k config/crd | ||
$(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -k config/dependency | ||
|
||
.PHONY: deploy | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resources: | ||
- ray.io_rayclusters.yaml | ||
- ray.io_rayjobs.yaml | ||
- ray.io_rayservices.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,12 @@ namePrefix: aibrix- | |
|
||
resources: | ||
- ../namespace | ||
- ../crd | ||
- ../rbac | ||
- ../manager | ||
- ../gateway | ||
- ../metadata | ||
- ../gpu-optimizer | ||
- ../dependency/kuberay-operator | ||
- ../kuberay-operator | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need to change kuberay-operator dir? That can still be part of dependency along with envoy-gateway. |
||
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in | ||
# crd/kustomization.yaml | ||
- ../webhook | ||
|
Uh oh!
There was an error while loading. Please reload this page.