Skip to content

Commit c363b27

Browse files
committed
Update install.sh
(cherry picked from commit 5222da0)
1 parent 059dcbc commit c363b27

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

manager/install.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function ensure_eks() {
3838
return
3939
fi
4040

41+
set +e
4142
cluster_status=$(echo "$cluster_info" | jq -r 'first | .Status')
43+
set -e
4244

4345
if [ "$cluster_status" == "DELETING" ]; then
4446
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)"
@@ -55,12 +57,6 @@ function ensure_eks() {
5557
exit 1
5658
fi
5759

58-
# Catch all
59-
if [ "$cluster_status" != "ACTIVE" ]; then
60-
echo "error: your Cortex cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION is not active; please wait until it is active, or delete it with \`eksctl delete cluster --name=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION\` and try again"
61-
exit 1
62-
fi
63-
6460
echo "✓ Cluster is running"
6561

6662
# Check if instance type changed

0 commit comments

Comments
 (0)