Skip to content

Commit

Permalink
chore: aws-eks/pre-destroy.sh: handle case where ns dne (#150)
Browse files Browse the repository at this point in the history
it is possible this script may run twice so we must be prepared to
handle the case where the namespace no longer exists.
  • Loading branch information
fidiego authored Dec 9, 2024
1 parent 3105f82 commit 73a9b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws-eks/pre-destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

set -u
set -o pipefail
set -e


echo "executing error-destroy script"
aws eks update-kubeconfig --name $NUON_INSTALL_ID --alias $NUON_INSTALL_ID
kubectl delete namespace $NUON_INSTALL_ID
kubectl delete namespace $NUON_INSTALL_ID --ignore-not-found=true

0 comments on commit 73a9b67

Please # to comment.