Merge "RFC: Set the basic structure for post merge 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} == 'compass' ]];then
10         docker cp compass-tasks:/opt/admin.conf "${dest_path}"
11     fi
12 fi