summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick/yardstick-get-k8s-conf.sh
blob: 3af2dcb71a10da0959a176da33c9c3b59afd7f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -e

dest_path="$HOME/admin.conf"

if [[ "${DEPLOY_SCENARIO:0:2}" == "k8" ]];then
    if [[ ${INSTALLER_TYPE} == 'joid' ]];then
        juju scp kubernetes-master/0:config "${dest_path}"
    elif [[ ${INSTALLER_TYPE} == 'fuel' ]];then
        echo "Getting kubernetes config ..."
        docker cp -L fuel:/opt/kubernetes.config "${dest_path}"
    fi
fi