Remove KUBECONFIG from env_file 17/53817/2
authorLinda Wang <wangwulin@huawei.com>
Thu, 15 Mar 2018 01:36:53 +0000 (01:36 +0000)
committerLinda Wang <wangwulin@huawei.com>
Thu, 22 Mar 2018 07:38:32 +0000 (07:38 +0000)
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>
jjb/functest/functest-k8.sh

index 49d7163..9017354 100755 (executable)
@@ -12,7 +12,6 @@ sudo rm -rf $rc_file
 
 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