diff --git a/tests/integration/gha-run.sh b/tests/integration/gha-run.sh index 103ce2cda7..a9a084e494 100755 --- a/tests/integration/gha-run.sh +++ b/tests/integration/gha-run.sh @@ -31,6 +31,9 @@ function login_azure() { } function create_cluster() { + # First, ensure that the cluster didn't fail to get cleaned up from a previous run. + delete_cluster || true + az aks create \ -g "kataCI" \ -n "$(_print_cluster_name)" \ @@ -115,8 +118,7 @@ function delete_cluster() { az aks delete \ -g "kataCI" \ -n "$(_print_cluster_name)" \ - --yes \ - --no-wait + --yes } function main() {