Skip to content

Commit

Permalink
Fix destroy infrastructure script to ignore delete failure
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Dec 16, 2024
1 parent b1f7967 commit 77d2431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/destroy-infrastructure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ aws eks describe-cluster --name "${EKS_CLUSTER_NAME}" &> /dev/null || cluster_ex

if [ $cluster_exists -eq 0 ]; then
echo "Deleting cluster ${EKS_CLUSTER_NAME}"
bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment || true'
bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment' || true

bash $SCRIPT_DIR/exec.sh "${environment}" 'eksctl delete cluster --name ${EKS_CLUSTER_NAME} --region ${AWS_REGION} --wait --force --disable-nodegroup-eviction --timeout 45m'
else
Expand Down

0 comments on commit 77d2431

Please sign in to comment.