We have hardcoded /root/.kube/config as the default config file
inside functest-kubernetes container:
https://gerrit.opnfv.org/gerrit/#/c/53815/
Change-Id: I135f2009c61bb0238fcc3c9eb6d131305603f495
Signed-off-by: Linda Wang <wangwulin@huawei.com>
if [[ ${INSTALLER_TYPE} == 'compass' ]]; then
admin_conf_file_vol="-v ${HOME}/admin.conf:/root/.kube/config"
- echo "export KUBECONFIG=/root/.kube/config" >> $rc_file
echo "export KUBERNETES_PROVIDER=local" >> $rc_file
KUBE_MASTER_URL=$(cat ${HOME}/admin.conf|grep server| awk '{print $2}')
echo "export KUBE_MASTER_URL=$KUBE_MASTER_URL" >> $rc_file