Enable kubernetes test suite for compass
[releng.git] / jjb / yardstick / yardstick-get-k8s-conf.sh
index e93367f..22a6aa4 100755 (executable)
@@ -4,5 +4,9 @@ set -e
 dest_path="$HOME/admin.conf"
 
 if [[ "${DEPLOY_SCENARIO:0:2}" == "k8" ]];then
-    juju scp kubernetes-master/0:config "${dest_path}"
+    if [[ ${INSTALLER_TYPE} == 'joid' ]];then
+        juju scp kubernetes-master/0:config "${dest_path}"
+    elif [[ ${INSTALLER_TYPE} == 'compass' ]];then
+        docker cp compass-tasks:/opt/admin.conf "${dest_path}"
+    fi
 fi