Code Review
/
icn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add additional clean targets
[icn.git]
/
deploy
/
site
/
pod11
/
pod11.sh
diff --git
a/deploy/site/pod11/pod11.sh
b/deploy/site/pod11/pod11.sh
index
7c052ff
..
28530fc
100644
(file)
--- a/
deploy/site/pod11/pod11.sh
+++ b/
deploy/site/pod11/pod11.sh
@@
-49,11
+49,22
@@
function wait_for_all_ready {
wait_for is_control_plane_ready
}
wait_for is_control_plane_ready
}
+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 ;;
case $1 in
"build-source") build_source ;;
"clean") clean ;;
"deploy") deploy ;;
"wait") wait_for_all_ready ;;
+ "wait-clean") wait_for_all_deleted ;;
*) cat <<EOF
Usage: $(basename $0) COMMAND
*) cat <<EOF
Usage: $(basename $0) COMMAND