[fuel] Follow symlink to get k8s config 26/67426/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 28 Mar 2019 14:36:41 +0000 (18:36 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 28 Mar 2019 14:38:05 +0000 (18:38 +0400)
Change-Id: Icd7aef4c5a328e5e92e9740de3737a82acc71f8b
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
jjb/functest/functest-k8.sh
utils/fetch_k8_conf.sh

index 8561b02..a4d80e1 100755 (executable)
@@ -24,7 +24,7 @@ elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then
     admin_conf_file_vol="-v ${HOME}/admin.conf:/root/.kube/config"
     KUBE_MASTER_URL=$(awk '/server:/ {print $2}' ${HOME}/admin.conf | grep -Fv localhost)
     KUBE_MASTER_IP=$(echo $KUBE_MASTER_URL | grep -Po '(\d+\.){3}\d+')
-    for k in KUBERNETES_PROVIDER KUBE_MASTER_URL KUBE_MASTER_IP; do
+    for k in KUBE_MASTER_URL KUBE_MASTER_IP; do
         echo "export $k=${!k}" >> $rc_file
     done
 else
index b3be0d6..e5e237d 100755 (executable)
@@ -61,7 +61,7 @@ elif [ "$installer_type" == "joid" ]; then
     info "Do nothing, config file has been provided in $HOME/joid_config/config for joid"
 elif [ "$installer_type" == "fuel" ]; then
     info "Getting kubernetes config ..."
-    docker cp fuel:/opt/kubernetes.config $dest_path
+    docker cp -L fuel:/opt/kubernetes.config $dest_path
 else
     error "Installer $installer_type is not supported by this script"
 fi