Merge "Update ci readme file to add one note"
[icn.git] / deploy / kud / kud_bm_launch.sh
index dd928de..2d0aea6 100755 (executable)
@@ -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
 }
 
@@ -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 optane}; 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