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 @@ -207,6 +207,11 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
207207 $(KUSTOMIZE ) build config/${ENV} | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
208208 git restore config/*
209209
210+ .PHONY : install-odh-operator
211+ install-odh-operator : kustomize # # Install ODH operator into the OpenShift cluster specified in ~/.kube/config.
212+ $(KUSTOMIZE ) build config/odh-operator | kubectl apply -f -
213+ kubectl wait -n openshift-operators subscription/opendatahub-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
214+
210215# #@ Build Dependencies
211216
212217# # Location to install dependencies to
@@ -377,6 +382,17 @@ test-component: envtest ginkgo ## Run component tests.
377382test-e2e : manifests fmt vet # # Run e2e tests.
378383 go test -timeout 30m -v ./test/e2e
379384
385+ .PHONY : test-odh
386+ test-odh : manifests fmt vet # # Run e2e ODH tests.
387+ go test -timeout 60m -v ./test/odh
388+
389+ .PHONY : store-odh-logs
390+ store-odh-logs : # Store all ODH relevant logs into artifact directory
391+ kubectl logs -n opendatahub deployment/codeflare-operator-manager > ${ARTIFACT_DIR} /codeflare-operator.log
392+ kubectl logs -n opendatahub deployment/kuberay-operator > ${ARTIFACT_DIR} /kuberay-operator.log
393+ kubectl logs -n openshift-operators deployment/opendatahub-operator-controller-manager > ${ARTIFACT_DIR} /odh-operator.log
394+ kubectl get events -n opendatahub > ${ARTIFACT_DIR} /odh-events.log
395+
380396.PHONY : kind-e2e
381397kind-e2e : # # Set up e2e KinD cluster
382398 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