X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fkud%2Fkud_bm_launch.sh;h=83181808eaac4a01a3507b4fcd46a21c12e17c09;hb=0e47879de8110bc0269b23de19db902461475650;hp=c19b0bdb4c0fcfec78a4abd0b65089a7c3c2d544;hpb=ec966951c55b36d3cbe5964303862dc0865d6603;p=icn.git diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index c19b0bd..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,9 +87,12 @@ 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 @@ -120,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