Remove all compass jobs
[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} == 'fuel' ]];then
10         echo "Getting kubernetes config ..."
11         docker cp -L fuel:/opt/kubernetes.config "${dest_path}"
12     fi
13 fi