From 567fc8e2803a00a1e5dd8b7c81819709ad0f98c5 Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Sat, 26 Sep 2020 13:51:37 -0700 Subject: [PATCH] Remove unnecessary code in uninstall.sh --- manager/uninstall.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/manager/uninstall.sh b/manager/uninstall.sh index ecf5b875e4..16365a9348 100755 --- a/manager/uninstall.sh +++ b/manager/uninstall.sh @@ -18,14 +18,6 @@ set -e EKSCTL_TIMEOUT=45m -eksctl utils write-kubeconfig --cluster=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION | grep -v "saved kubeconfig as" | grep -v "using region" | grep -v "eksctl version" || true - -# will return "" if there are any errors -function get_operator_endpoint() { - kubectl -n=istio-system get service ingressgateway-operator -o json | tr -d '[:space:]' | sed 's/.*{\"hostname\":\"\(.*\)\".*/\1/' -} -operator_endpoint=$(get_operator_endpoint) - echo eksctl delete cluster --wait --name=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION --timeout=$EKSCTL_TIMEOUT