JIRA: BOTTLENECK-243
Geting k8s config using sshpass will fail when frst time
loginning to k8s master. Add -o StrictHostKeyChecking=no
to input the prompt.
Change-Id: Ib9ab3617b6d50ab85be317faf715f751fcda9149
Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
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