@@ -433,6 +433,7 @@ kueue-setup:
433433all-in-one :
434434 @echo -e " \n ==> Installing Everything needed for distributed AI platform on OpenShift cluster \n"
435435 -make install-nfd-operator
436+ -make install-service-mesh-operator
436437 -make install-ai-platform-operator
437438 -make install-nvidia-operator
438439
@@ -441,6 +442,7 @@ delete-all-in-one:
441442 @echo -e " \n ==> Removing Everything needed for distributed AI platform on OpenShift cluster \n"
442443 -make delete-nfd-operator
443444 -make delete-ai-platform-operator
445+ -make delete-service-mesh-operator
444446 -make delete-nvidia-operator
445447
446448# #@ general
@@ -463,6 +465,10 @@ endif
463465.PHONY : delete-rhoai-operator
464466delete-rhoai-operator : # # Delete RHOAI Operator
465467 @echo -e " \n ==> Deleting OpenShift AI Operator \n"
468+ kubectl delete datasciencecluster/default-dsc
469+ kubectl wait --for=delete datasciencecluster/default-dsc --timeout=180s
470+ kubectl delete dsci/default-dsci
471+ kubectl wait --for=delete dsci/default-dsci --timeout=180s
466472 -kubectl delete subscription rhods-operator -n redhat-ods-operator
467473 -export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n redhat-ods-operator -l operators.coreos.com/rhods-operator.redhat-ods-operator -o custom-columns=:metadata.name` ; \
468474 kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n redhat-ods-operator
@@ -475,13 +481,19 @@ install-rhoai-operator: ## Install RHOAI Operator
475481 kubectl create -f contrib/configuration/rhoai/rhoai-operator-subscription.yaml
476482 @echo Waiting for rhoai-operator Subscription to be ready
477483 kubectl wait -n redhat-ods-operator subscription/rhods-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
484+ -export RHOAI_POD_NAME=` kubectl get -n redhat-ods-operator pod -o custom-columns=:metadata.name | grep rhods-operator` ; \
485+ kubectl wait --for=' jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/$$ RHOAI_POD_NAME -n redhat-ods-operator
478486 @echo -e " \n==> Creating default Data Science Cluster \n"
479487 kubectl apply -f contrib/configuration/rhoai/default-dsci.yaml --server-side
480488 kubectl apply -f contrib/configuration/rhoai/default-dsc.yaml --server-side
481489
482490.PHONY : delete-opendatahub-operator
483491delete-opendatahub-operator : # # Delete OpenDataHub operator
484492 @echo -e " \n==> Deleting OpenDataHub Operator \n"
493+ kubectl delete datasciencecluster/default-dsc
494+ kubectl wait --for=delete datasciencecluster/default-dsc --timeout=180s
495+ kubectl delete dsci/default-dsci
496+ kubectl wait --for=delete dsci/default-dsci --timeout=180s
485497 -kubectl delete subscription opendatahub-operator -n openshift-operators
486498 -export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n openshift-operators -l operators.coreos.com/opendatahub-operator.openshift-operators -o custom-columns=:metadata.name` ; \
487499 kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n openshift-operators
@@ -494,11 +506,26 @@ install-opendatahub-operator: ## Install OpenDataHub operator
494506 kubectl create -f contrib/configuration/odh/opendatahub-operator-subscription.yaml
495507 @echo Waiting for opendatahub-operator Subscription to be ready
496508 kubectl wait -n openshift-operators subscription/opendatahub-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
497- sleep 2
498509 kubectl wait --for=condition=available deployment/opendatahub-operator-controller-manager -n openshift-operators --timeout=180s
510+ -export ODH_POD_NAME=` kubectl get -n openshift-operators pod -o custom-columns=:metadata.name | grep opendatahub-operator-controller-manager` ; \
511+ kubectl wait --for=' jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/$$ ODH_POD_NAME -n openshift-operators
499512 kubectl apply -f contrib/configuration/odh/default-dsci.yaml --server-side
500513 kubectl apply -f contrib/configuration/odh/default-dsc.yaml --server-side
501514
515+ .PHONY : delete-service-mesh-operator
516+ delete-service-mesh-operator : # # Delete Service Mesh Operator
517+ @echo -e " \n==> Deleting Service Mesh Operator \n"
518+ kubectl delete subscription servicemeshoperator -n openshift-operators
519+ -export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n openshift-operators -l operators.coreos.com/servicemeshoperator.openshift-operators -o custom-columns=:metadata.name` ; \
520+ kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n openshift-operators
521+
522+ .PHONY : install-service-mesh-operator
523+ install-service-mesh-operator : # # Install Service Mesh Operator
524+ @echo -e " \n==> Installing OpenShift Service Mesh Operator"
525+ kubectl create -f contrib/configuration/service-mesh-operator-subscription.yaml
526+ kubectl wait -n openshift-operators subscription/servicemeshoperator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
527+ kubectl wait --for=condition=available deployment/istio-operator -n openshift-operators --timeout=180s
528+
502529# #@ GPU Support
503530.PHONY : install-nfd-operator
504531install-nfd-operator : # # Install NFD operator ( Node Feature Discovery )
0 commit comments