X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fsite%2Fvm%2Fvm.sh;h=51ad4c9c9130ae1e9d49aed24f240925aa6a93da;hb=92ade28a02e8a9f1116fe23fe5438d9bfe7619e0;hp=c533f2722c8961f00766d992e9a584dcd95aced8;hpb=9c9fad3ba8749814487e39139d8d8ee9016ebbdf;p=icn.git diff --git a/deploy/site/vm/vm.sh b/deploy/site/vm/vm.sh index c533f27..51ad4c9 100755 --- a/deploy/site/vm/vm.sh +++ b/deploy/site/vm/vm.sh @@ -107,11 +107,22 @@ function wait_for_all_ready { insert_control_plane_network_identity_into_ssh_config } +function is_cluster_deleted { + ! kubectl -n ${SITE_NAMESPACE} get cluster icn +} + +function wait_for_all_deleted { + WAIT_FOR_INTERVAL=60s + WAIT_FOR_TRIES=30 + wait_for is_cluster_deleted +} + case $1 in "build-source") build_source ;; "clean") clean ;; "deploy") deploy ;; "wait") wait_for_all_ready ;; + "wait-clean") wait_for_all_deleted ;; *) cat <