Commit c53d76d5 authored by bruceauyeung's avatar bruceauyeung Committed by 欧阳钦华10079130

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

parent 8b98e802
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment