summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
7486614)
Change-Id: I87b7d74b22341d9c091c16436a9d4a6cfce173d5
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
elif [[ ${INSTALLER_TYPE} == 'joid' && ${BRANCH} == 'master' ]]; then
admin_conf_file_vol="-v ${HOME}/joid_config/config:/root/.kube/config"
rc_file=${HOME}/joid_config/k8config
elif [[ ${INSTALLER_TYPE} == 'joid' && ${BRANCH} == 'master' ]]; then
admin_conf_file_vol="-v ${HOME}/joid_config/config:/root/.kube/config"
rc_file=${HOME}/joid_config/k8config
+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
+ echo "export $k=${!k}" >> $rc_file
+ done
else
echo "Not supported by other installers yet"
exit 1
else
echo "Not supported by other installers yet"
exit 1
info "Fetch admin.conf successfully"
elif [ "$installer_type" == "joid" ]; then
info "Do nothing, config file has been provided in $HOME/joid_config/config for joid"
info "Fetch admin.conf successfully"
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
else
error "Installer $installer_type is not supported by this script"
fi
else
error "Installer $installer_type is not supported by this script"
fi