Merge pull request #69086 from bruceauyeung/log-useful-info-instead-of-silent-exit-when-etcd-already-installed

log useful information instead of silent exit without error
pull/564/head
Kubernetes Prow Robot 2019-02-10 18:14:26 -08:00 committed by GitHub
commit e47973bd31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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