X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fkud%2Fkud_bm_launch.sh;h=201665936f726b7d9b4eee46b085208d6be2e511;hb=ab49400d4b8fa2466758462f33a723941fcdc79e;hp=412242230792b7aca9db64211ce635bbc19fe4da;hpb=6c64e47646e2fc21447b5a3ae3ff4fae9d556c0d;p=icn.git diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index 4122422..2016659 100755 --- a/deploy/kud/kud_bm_launch.sh +++ b/deploy/kud/kud_bm_launch.sh @@ -12,7 +12,11 @@ function get_kud_repo { mkdir -p $DOWNLOAD_PATH pushd $DOWNLOAD_PATH - git clone https://github.com/onap/multicloud-k8s.git + if [ "$1" == "v1" ] ; then + git clone --branch v1.0-icn https://github.com/akraino-icn/multicloud-k8s.git + else + git clone https://github.com/onap/multicloud-k8s.git + fi popd } @@ -83,7 +87,7 @@ EOL function kud_install { pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/ - if [ "$1" == "all" || "$1" == "vm" ]; then + if [ "$1" == "all" -o "$1" == "vm" ]; then sed -i -e 's/testing_enabled=${KUD_ENABLE_TESTS:-false}/testing_enabled=${KUD_ENABLE_TESTS:-true}/g' installer.sh fi if [ "$1" == "vm" ]; then @@ -92,10 +96,11 @@ function kud_install { ./installer.sh | tee kud_deploy.log if [ "$1" == "bm" ]; then - pushd $DOWNLOAD_PATH/multicloud-k8s/kud/tests/ - sleep 15 - bash sriov.sh - popd + for addon in ${KUD_ADDONS:-multus ovn4nfv nfd sriov qat cmk}; do + pushd $DOWNLOAD_PATH/multicloud-k8s/kud/tests/ + bash ${addon}.sh + popd + done fi popd } @@ -123,7 +128,7 @@ if [ "$1" == "reset" ] ; then exit 0 fi -get_kud_repo +get_kud_repo $2 set_ssh_key set_bm_kud $1 kud_install $1