Skip to content

Commit 14e71ff

Browse files
committed
fix: add conditional statement in clean up script
1 parent b5dcd49 commit 14e71ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

live/clean-up.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ kubectl delete -f $SO1S_DEPLOY_REPO_PATH/project/project-$SO1S_ENV_NAME.yaml --w
3838

3939
helm uninstall argocd -n argocd --wait
4040

41-
helm uninstall external-dns -n kube-system --wait
42-
helm uninstall alb -n kube-system --wait
41+
if [ $SO1S_ENV_NUMBER -eq 1 ]; then
42+
helm uninstall external-dns -n kube-system --wait
43+
helm uninstall alb -n kube-system --wait
44+
fi
4345

4446
terraform destroy -var="global_name=$SO1S_GLOBAL_NAME"

0 commit comments

Comments
 (0)