X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fyardstick%2Fyardstick-get-k8s-conf.sh;h=82744a4ee098ad2a44e998566d7cc2c43f7f7f88;hb=1ca5a4aff9af232728a6632e2e5a90129cd5c027;hp=ce1e94dde018da8e07e9886e57992e4827487860;hpb=ccd98e34b65d3273d2919e2aa7f90e8bfa8f89a2;p=releng.git diff --git a/jjb/yardstick/yardstick-get-k8s-conf.sh b/jjb/yardstick/yardstick-get-k8s-conf.sh index ce1e94dde..82744a4ee 100755 --- a/jjb/yardstick/yardstick-get-k8s-conf.sh +++ b/jjb/yardstick/yardstick-get-k8s-conf.sh @@ -1,7 +1,16 @@ +#!/bin/bash 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 + echo "Copy admin.conf to ${dest_path}" + docker cp compass-tasks:/opt/admin.conf "${dest_path}" + elif [[ ${INSTALLER_TYPE} == 'fuel' ]];then + echo "Getting kubernetes config ..." + docker cp -L fuel:/opt/kubernetes.config "${dest_path}" + fi fi