log useful information instead of silent exit without error when etcd has already been installed

This commit is contained in:
bruceauyeung 2018-09-26 14:57:26 +08:00 committed by 欧阳钦华10079130
parent 8b98e802ed
commit c53d76d535

View File

@ -108,6 +108,8 @@ kube::etcd::install() {
cd "${KUBE_ROOT}/third_party"
os=$(uname | tr "[:upper:]" "[:lower:]")
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
kube::log::info "etcd v${ETCD_VERSION} already installed at path:"
kube::log::info "$(pwd)/$(readlink etcd)"
return # already installed
fi
if [[ ${os} == "darwin" ]]; then