Skip to content

Commit 04a1002

Browse files
committed
Update destroy command in ArgoCD applications to use hardcoded cluster name and namespace
1 parent 9592d35 commit 04a1002

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Terraform/modules/argocd/applications.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ EOF
3838

3939
provisioner "local-exec" {
4040
when = destroy
41-
command = <<EOF
42-
# Configure kubectl for destroy (using hardcoded cluster name for destroy compatibility)
43-
aws eks update-kubeconfig --name ${var.cluster_name} --region us-east-1 || true
44-
kubectl delete application ${var.applications[count.index].name} -n ${var.namespace} --ignore-not-found=true
41+
command = <<EOF
42+
# Configure kubectl for destroy (using hardcoded values)
43+
aws eks update-kubeconfig --name otel-cluster --region us-east-1 || true
44+
kubectl delete application ${var.applications[count.index].name} -n argocd --ignore-not-found=true
4545
EOF
4646
}
4747

0 commit comments

Comments
 (0)