X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fkud%2Fkud_bm_launch.sh;h=83181808eaac4a01a3507b4fcd46a21c12e17c09;hb=0e47879de8110bc0269b23de19db902461475650;hp=60784c40dc9eb3c3ed9ca23de96ed1bcb8bad176;hpb=b82ae6975d26581802457364993bee061350ae32;p=icn.git diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index 60784c4..8318180 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,10 +87,20 @@ EOL function kud_install { pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/ - if [ "$1" == "all" ]; 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 + sed -i -e 's/^kube_pods_subnet.*/kube_pods_subnet: 172.21.64.0\/18/g' inventory/group_vars/k8s-cluster.yml + fi ./installer.sh | tee kud_deploy.log + + if [ "$1" == "bm" ]; then + pushd $DOWNLOAD_PATH/multicloud-k8s/kud/tests/ + sleep 15 + bash sriov.sh + popd + fi popd } @@ -113,7 +127,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