Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 a 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
Expand Down