Skip to content

Commit

Permalink
Makefile: Install ODH 2.x operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sutaakar authored and openshift-merge-robot committed Sep 15, 2023
1 parent 1bdbacf commit e749d24
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ delete-codeflare-operator-from-github: ## Delete CodeFlare operator from main br
deploy-codeflare: ## Deploy CodeFlare
@echo -e "\n==> Deploying CodeFlare \n"
-oc create ns opendatahub
@while [[ -z $$(oc get customresourcedefinition kfdefs.kfdef.apps.kubeflow.org) ]]; do echo "."; sleep 10; done
oc apply -f https://raw.githubusercontent.com/opendatahub-io/odh-manifests/master/kfdef/odh-core.yaml -n opendatahub
oc apply -f https://raw.githubusercontent.com/opendatahub-io/distributed-workloads/main/codeflare-stack-kfdef.yaml -n opendatahub
@while [[ -z $$(oc get customresourcedefinition datascienceclusters.datasciencecluster.opendatahub.io) ]]; do echo "."; sleep 10; done
oc apply -f https://raw.githubusercontent.com/opendatahub-io/distributed-workloads/main/codeflare-dsc.yaml -n opendatahub

.PHONY: delete-codeflare
delete-codeflare: ## Delete CodeFlare
@echo -e "\n==> Deleting CodeFlare \n"
-oc delete -f https://raw.githubusercontent.com/opendatahub-io/odh-manifests/master/kfdef/odh-core.yaml -n opendatahub
-oc delete -f https://raw.githubusercontent.com/opendatahub-io/distributed-workloads/main/codeflare-stack-kfdef.yaml -n opendatahub
-oc delete -f https://raw.githubusercontent.com/opendatahub-io/distributed-workloads/main/codeflare-dsc.yaml -n opendatahub
-oc delete ns opendatahub

.PHONY: deploy-codeflare-from-filesystem
Expand Down
26 changes: 26 additions & 0 deletions contrib/configuration/basic-dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: datasciencecluster.opendatahub.io/v1alpha1
kind: DataScienceCluster
metadata:
labels:
app.kubernetes.io/created-by: opendatahub-operator
app.kubernetes.io/instance: default
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: datasciencecluster
app.kubernetes.io/part-of: opendatahub-operator
name: example-dsc
spec:
components:
codeflare:
enabled: false
dashboard:
enabled: true
datasciencepipelines:
enabled: false
kserve:
enabled: false
modelmeshserving:
enabled: false
ray:
enabled: false
workbenches:
enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
operators.coreos.com/opendatahub-operator.openshift-operators: ''
namespace: openshift-operators
spec:
channel: rolling
channel: fast
name: opendatahub-operator
installPlanApproval: Automatic
source: community-operators
Expand Down

0 comments on commit e749d24

Please sign in to comment.