Skip to content

fix: configure kubectl before cleanup in make destroy#29

Open
anners wants to merge 1 commit into
mainfrom
fix/eks-make-destroy-26
Open

fix: configure kubectl before cleanup in make destroy#29
anners wants to merge 1 commit into
mainfrom
fix/eks-make-destroy-26

Conversation

@anners

@anners anners commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Closes #26

Problem

make destroy called make clean which runs kubectl delete before kubectl was configured for the cluster. This caused the destroy to fail if kubectl wasn't already pointing at the cluster.

Fix

Replaced make clean in the destroy target with an inline step that:

  1. Configures kubectl via terraform output -raw configure_kubectl
  2. Deletes the test workload
  3. If either step fails (cluster already unreachable or partially destroyed), prints a message and continues rather than blocking the Terraform destroy

@anners anners requested a review from mdwyer-edera June 24, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"make destroy" doesn't work in EKS.

1 participant