From b04672ebce66c256e2337122f799ddd09321f228 Mon Sep 17 00:00:00 2001 From: E M <5089238+emizzle@users.noreply.github.com> Date: Wed, 29 Apr 2026 20:37:18 +1000 Subject: [PATCH] Add a "Delete PVCs before cluster teardown" step to the workflow to prevent future PVC leaks --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b962d468..5636b513 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -362,6 +362,13 @@ jobs: echo "Job status: $job_status" [[ "$job_status" == "SuccessCriteriaMet" ]] || exit 1 + - name: Delete PVCs before cluster teardown + if: always() && steps.tf-apply.conclusion != 'skipped' + run: | + # Delete all PVCs so the CSI driver can release GCE PDs before the cluster is destroyed. + # Without this, terraform destroy orphans the PDs and they consume SSD quota indefinitely. + kubectl delete pvc --all --all-namespaces --wait=false 2>/dev/null || true + - name: Terraform destroy if: always() && steps.tf-apply.conclusion != 'skipped' working-directory: ${{ env.TF_DIR }}