mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-01 00:00:00 +00:00
Add a "Delete PVCs before cluster teardown" step to the workflow to prevent future PVC leaks
This commit is contained in:
parent
eac099b819
commit
b04672ebce
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user