X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=deploy%2Fkud%2Fkud_bm_launch.sh;h=60784c40dc9eb3c3ed9ca23de96ed1bcb8bad176;hb=71033a920680e2495f14948c347e99ed2558f6d7;hp=e9cafa8b256fbc8ef6f9e8b94669617b492abac0;hpb=15ef8c87177cf951066f5925d51675b8eb42aef2;p=icn.git diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index e9cafa8..60784c4 100755 --- a/deploy/kud/kud_bm_launch.sh +++ b/deploy/kud/kud_bm_launch.sh @@ -83,10 +83,21 @@ EOL function kud_install { pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/ + if [ "$1" == "all" ]; then + sed -i -e 's/testing_enabled=${KUD_ENABLE_TESTS:-false}/testing_enabled=${KUD_ENABLE_TESTS:-true}/g' installer.sh + fi ./installer.sh | tee kud_deploy.log popd } +function kud_reset { + pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/ + ansible-playbook -i inventory/hosts.ini /opt/kubespray-2.10.4/reset.yml \ + --become --become-user=root -e reset_confirmation=yes + popd +} + + function verifier { APISERVER=$(kubectl config view --minify -o \ jsonpath='{.clusters[0].cluster.server}') @@ -97,10 +108,15 @@ function verifier { call_api $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure } +if [ "$1" == "reset" ] ; then + kud_reset + exit 0 +fi + get_kud_repo set_ssh_key set_bm_kud $1 -kud_install +kud_install $1 verifier exit 0