File tree Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,11 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
222222 $(KUSTOMIZE ) build config/${ENV} | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
223223 git restore config/*
224224
225+ .PHONY : install-odh-operator
226+ install-odh-operator : kustomize # # Install ODH operator into the OpenShift cluster specified in ~/.kube/config.
227+ $(KUSTOMIZE ) build config/odh-operator | kubectl apply -f -
228+ kubectl wait -n openshift-operators subscription/opendatahub-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
229+
225230# #@ Build Dependencies
226231
227232# # Location to install dependencies to
@@ -392,6 +397,17 @@ test-component: envtest ginkgo ## Run component tests.
392397test-e2e : manifests fmt vet # # Run e2e tests.
393398 go test -timeout 30m -v ./test/e2e
394399
400+ .PHONY : test-odh
401+ test-odh : manifests fmt vet # # Run e2e ODH tests.
402+ go test -timeout 60m -v ./test/odh
403+
404+ .PHONY : store-odh-logs
405+ store-odh-logs : # Store all ODH relevant logs into artifact directory
406+ kubectl logs -n opendatahub deployment/codeflare-operator-manager > ${ARTIFACT_DIR} /codeflare-operator.log
407+ kubectl logs -n opendatahub deployment/kuberay-operator > ${ARTIFACT_DIR} /kuberay-operator.log
408+ kubectl logs -n openshift-operators deployment/opendatahub-operator-controller-manager > ${ARTIFACT_DIR} /odh-operator.log
409+ kubectl get events -n opendatahub > ${ARTIFACT_DIR} /odh-events.log
410+
395411.PHONY : kind-e2e
396412kind-e2e : # # Set up e2e KinD cluster
397413 test/e2e/kind.sh
Original file line number Diff line number Diff line change 1+ resources :
2+ - odh.yaml
Original file line number Diff line number Diff line change 1+ apiVersion : operators.coreos.com/v1alpha1
2+ kind : Subscription
3+ metadata :
4+ name : opendatahub-operator
5+ labels :
6+ operators.coreos.com/opendatahub-operator.openshift-operators : ' '
7+ namespace : openshift-operators
8+ spec :
9+ channel : fast
10+ name : opendatahub-operator
11+ installPlanApproval : Automatic
12+ source : community-operators
13+ sourceNamespace : openshift-marketplace
Original file line number Diff line number Diff line change 1+ apiVersion : datasciencecluster.opendatahub.io/v1
2+ kind : DataScienceCluster
3+ metadata :
4+ labels :
5+ app.kubernetes.io/created-by : opendatahub-operator
6+ app.kubernetes.io/instance : default
7+ app.kubernetes.io/managed-by : kustomize
8+ app.kubernetes.io/name : datasciencecluster
9+ app.kubernetes.io/part-of : opendatahub-operator
10+ name : example-dsc
11+ spec :
12+ components :
13+ codeflare :
14+ devFlags :
15+ manifests :
16+ - uri : ' <CFO PR tarball URI>'
17+ contextDir : ' config'
18+ sourcePath : ' manifests'
19+ managementState : Managed
20+ dashboard :
21+ managementState : Managed
22+ datasciencepipelines :
23+ managementState : Removed
24+ kserve :
25+ managementState : Removed
26+ modelmeshserving :
27+ managementState : Removed
28+ ray :
29+ managementState : Managed
30+ workbenches :
31+ managementState : Managed
You can’t perform that action at this time.
0 commit comments