Merge "bug-fix: get k8s config"
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
Sun, 16 Sep 2018 07:43:46 +0000 (07:43 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Sun, 16 Sep 2018 07:43:46 +0000 (07:43 +0000)
utils/k8s_setup/k8s_config_pre.sh

index 05c3f1c..96f714b 100644 (file)
@@ -59,8 +59,8 @@ while [[ $# > 0 ]]
      shift
 done
 
-if [[  ${INSTALLER_TYPE} == 'compass' ]]; then
-    sshpass -p root scp root@192.16.1.222:~/.kube/config ${K8S_CONFIG}
+if [[ ${INSTALLER_TYPE} == 'compass' ]]; then
+    sshpass -p root scp -o StrictHostKeyChecking=no root@192.16.1.222:~/.kube/config ${K8S_CONFIG}
 else
     echo "BOTTLENECKS EROOR: unrecognized installer"
 fi