From e908ccdb9c75a70ee3a5d7f6c6894cbb6ce52bc9 Mon Sep 17 00:00:00 2001 From: vandomej Date: Sun, 28 Sep 2025 12:32:47 -0700 Subject: [PATCH] Adding everything needed to cleanup script --- control_plane/cleanup.sh | 4 ++++ control_plane/main.tf | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/control_plane/cleanup.sh b/control_plane/cleanup.sh index 68183fd..93bcf6f 100644 --- a/control_plane/cleanup.sh +++ b/control_plane/cleanup.sh @@ -2,6 +2,10 @@ cluster_name="$1" echo "Starting cleanup for cluster: $cluster_name" +sudo --preserve-env=HOME talosctl cluster destroy \ + --provisioner=qemu \ + --name $cluster_name || true + sudo ifconfig bridge0 destroy || true # Remove kubeconfig entries diff --git a/control_plane/main.tf b/control_plane/main.tf index d19614b..83d141d 100644 --- a/control_plane/main.tf +++ b/control_plane/main.tf @@ -92,9 +92,6 @@ resource "null_resource" "talos_cluster" { provisioner "local-exec" { when = destroy command = <