X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fyardstick%2Fyardstick-get-k8s-conf.sh;h=3af2dcb71a10da0959a176da33c9c3b59afd7f5c;hb=824a278e82c9bc5217d6f7c3d99511eb23334f70;hp=e93367f9a011c1755cc878f0713bf2f6039e3030;hpb=ede0336258973c16ec2ba557ec7c8a2bc2cc8168;p=releng.git diff --git a/jjb/yardstick/yardstick-get-k8s-conf.sh b/jjb/yardstick/yardstick-get-k8s-conf.sh index e93367f9a..3af2dcb71 100755 --- a/jjb/yardstick/yardstick-get-k8s-conf.sh +++ b/jjb/yardstick/yardstick-get-k8s-conf.sh @@ -4,5 +4,10 @@ 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} == 'fuel' ]];then + echo "Getting kubernetes config ..." + docker cp -L fuel:/opt/kubernetes.config "${dest_path}" + fi fi