From 838d5802716302cca1f02495e127b02be6b3c719 Mon Sep 17 00:00:00 2001 From: vishal Date: Tue, 24 Dec 2019 18:27:09 -0500 Subject: [PATCH 1/2] Update install.sh to block up on a cluster that has already been spun up --- manager/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manager/install.sh b/manager/install.sh index fb958ffc17..ac4ea9b3ec 100755 --- a/manager/install.sh +++ b/manager/install.sh @@ -73,6 +73,11 @@ function ensure_eks() { cluster_status=$(echo "$cluster_info" | jq -r 'first | .Status') set -e + if [[ "$cluster_status" == "ACTIVE" ]] && [[ "$arg1" != "--update" ]]; then + echo "error: there is already cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION" + exit 1 + fi + if [ "$cluster_status" == "DELETING" ]; then echo "error: your cortex cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION is currently spinning down; please try again once it is completely deleted (may take a few minutes)" exit 1 From d35e1b0caa1cc21d091370d4a193103eca742fb0 Mon Sep 17 00:00:00 2001 From: vishal Date: Tue, 24 Dec 2019 18:33:24 -0500 Subject: [PATCH 2/2] Update install.sh --- manager/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/install.sh b/manager/install.sh index ac4ea9b3ec..cfcf73b315 100755 --- a/manager/install.sh +++ b/manager/install.sh @@ -74,7 +74,7 @@ function ensure_eks() { set -e if [[ "$cluster_status" == "ACTIVE" ]] && [[ "$arg1" != "--update" ]]; then - echo "error: there is already cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION" + echo "error: there is already a cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION" exit 1 fi