From 16bf4142f4abf571b4a801b3bf47332afa7fb643 Mon Sep 17 00:00:00 2001 From: Shilpa Chugh Date: Thu, 12 Oct 2023 16:46:38 +0530 Subject: [PATCH] delete_codeflaresubscription_resources --- Makefile | 18 ++---------------- .../codeflare-operator-subscription.yaml | 13 ------------- tests/README.md | 3 --- 3 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 contrib/configuration/codeflare-operator-subscription.yaml diff --git a/Makefile b/Makefile index 5c751293..b4ad3268 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,8 @@ help: ## Display this help. .PHONY: all-in-one # All-In-One all-in-one: ## Install distributed AI platform @echo -e "\n==> Installing Everything needed for distributed AI platform on OpenShift cluster \n" - -make delete-codeflare delete-nfd-operator delete-nvidia-operator delete-codeflare-operator delete-opendatahub-operator - make install-opendatahub-operator install-codeflare-operator install-nfd-operator install-nvidia-operator deploy-codeflare + -make delete-codeflare delete-nfd-operator delete-nvidia-operator delete-opendatahub-operator + make install-opendatahub-operator install-nfd-operator install-nvidia-operator deploy-codeflare make opendatahub-dashboard @echo -e "\n==> Done (Deploy everything)\n" @@ -54,20 +54,6 @@ delete-opendatahub-operator: ## Delete OpenDataHub operator -export CLUSTER_SERVICE_VERSION=`oc get clusterserviceversion -n openshift-operators -l operators.coreos.com/opendatahub-operator.openshift-operators -o custom-columns=:metadata.name`; \ oc delete clusterserviceversion $$CLUSTER_SERVICE_VERSION -n openshift-operators -.PHONY: install-codeflare-operator -install-codeflare-operator: ## Install CodeFlare operator - @echo -e "\n==> Installing CodeFlare Operator \n" - oc create -f contrib/configuration/codeflare-operator-subscription.yaml - @echo Waiting for codeflare-operator Subscription to be ready - oc wait -n openshift-operators subscription/codeflare-operator --for=jsonpath='{.status.state}'=AtLatestKnown --timeout=180s - -.PHONY: delete-codeflare-operator -delete-codeflare-operator: ## Delete CodeFlare operator - @echo -e "\n==> Deleting CodeFlare Operator \n" - -oc delete subscription codeflare-operator -n openshift-operators - -export CLUSTER_SERVICE_VERSION=`oc get clusterserviceversion -n openshift-operators -l operators.coreos.com/codeflare-operator.openshift-operators -o custom-columns=:metadata.name`; \ - oc delete clusterserviceversion $$CLUSTER_SERVICE_VERSION -n openshift-operators - .PHONY: install-codeflare-operator-from-github install-codeflare-operator-from-github: ## Install CodeFlare operator from main branch on GitHub @echo -e "\n==> Installing CodeFlare Operator from main branch on GitHub \n" diff --git a/contrib/configuration/codeflare-operator-subscription.yaml b/contrib/configuration/codeflare-operator-subscription.yaml deleted file mode 100644 index 88619ccf..00000000 --- a/contrib/configuration/codeflare-operator-subscription.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: operators.coreos.com/v1alpha1 -kind: Subscription -metadata: - name: codeflare-operator - labels: - operators.coreos.com/codeflare-operator.openshift-operators: '' - namespace: openshift-operators -spec: - channel: alpha - name: codeflare-operator - installPlanApproval: Automatic - source: community-operators - sourceNamespace: openshift-marketplace diff --git a/tests/README.md b/tests/README.md index d5a0dcda..31f776e5 100644 --- a/tests/README.md +++ b/tests/README.md @@ -10,9 +10,6 @@ # Go to the root folder of the repository cd .. -# Install CodeFlare operator -make install-codeflare-operator - # Install ODH operator make install-opendatahub-operator