From d99234440556c1cddd1d727b1fac913f8ae03201 Mon Sep 17 00:00:00 2001 From: Nir Rozenbaum Date: Tue, 28 Dec 2021 09:47:54 +0200 Subject: [PATCH] revert undeploy LH script last change Signed-off-by: Nir Rozenbaum --- deploy/undeploy_leaf_hub.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/undeploy_leaf_hub.sh b/deploy/undeploy_leaf_hub.sh index b358e00ab..b2449109d 100755 --- a/deploy/undeploy_leaf_hub.sh +++ b/deploy/undeploy_leaf_hub.sh @@ -9,14 +9,13 @@ set -o nounset acm_namespace=open-cluster-management echo "using kubeconfig $KUBECONFIG" -# delete deployments before namespace (to remove finalizers first) +kubectl delete namespace hoh-system --ignore-not-found + curl -s "https://raw.githubusercontent.com/open-cluster-management/leaf-hub-spec-sync/$TAG/deploy/leaf-hub-spec-sync.yaml.template" | \ envsubst | kubectl delete -f - --ignore-not-found curl -s "https://raw.githubusercontent.com/open-cluster-management/leaf-hub-status-sync/$TAG/deploy/leaf-hub-status-sync.yaml.template" | \ envsubst | kubectl delete -f - --ignore-not-found -kubectl delete namespace hoh-system --ignore-not-found - # delete the HoH config CRD kubectl delete -f "https://raw.githubusercontent.com/open-cluster-management/hub-of-hubs-crds/$TAG/crds/hub-of-hubs.open-cluster-management.io_config_crd.yaml" \ --ignore-not-found