116d2f0d06b92b6dabe08775753e832c7dc061d5
[releng.git] / jjb / yardstick / yardstick-get-k8s-conf.sh
1 #!/bin/bash
2 set -e
3
4 dest_path="$HOME/admin.conf"
5
6 if [[ "${DEPLOY_SCENARIO:0:2}" == "k8" ]];then
7     if [[ ${INSTALLER_TYPE} == 'joid' ]];then
8         juju scp kubernetes-master/0:config "${dest_path}"
9     elif [[ ${INSTALLER_TYPE} == 'compass' ]];then
10         echo "Copy admin.conf to ${dest_path}"
11         docker cp compass-tasks:/opt/admin.conf "${dest_path}"
12     fi
13 fi