Skip to content

Commit 857ccdb

Browse files
committed
Refactor destroy workflow to delete ArgoCD applications instead of LoadBalancer services
1 parent a7f6350 commit 857ccdb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/destroy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
run: |
2929
aws eks update-kubeconfig --name otel-cluster --region us-east-1 || true
3030
31-
# Only delete the LoadBalancer services to prevent VPC destruction issues
32-
# Let Terraform handle destroying the ArgoCD application it created
33-
kubectl delete svc argocd-server -n argocd || true
34-
kubectl delete svc solar-system-svc || true
31+
kubectl delete application solar-system -n argocd || true
32+
kubectl delete application argocd -n argocd || true
3533
3634
- name: Terraform Init
3735
run: terraform init

0 commit comments

Comments
 (0)