From 5686e48f32d29432f28536dd1bf6b5e53e6093a9 Mon Sep 17 00:00:00 2001 From: Ivy Gooch Date: Mon, 25 Nov 2024 23:34:40 -0800 Subject: [PATCH] Deletes all dangling agones resources --- cloudbuild.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index fd81ac0d9e..dfff556741 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -348,6 +348,10 @@ steps: kubectl wait --for=delete ns agones-system --timeout=5m fi + if kubectl get crds | grep agones ; then + kubectl get crds -o=custom-columns=:.metadata.name | grep agones | xargs kubectl delete crd + fi + echo kubectl apply -f permissions.yaml on cluster "${testCluster}" kubectl apply -f permissions.yaml echo kubectl apply -f versionMap.yaml on cluster "${testCluster}"