mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
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
This commit is contained in:
commit
e47973bd31
@ -108,6 +108,8 @@ kube::etcd::install() {
|
|||||||
cd "${KUBE_ROOT}/third_party"
|
cd "${KUBE_ROOT}/third_party"
|
||||||
os=$(uname | tr "[:upper:]" "[:lower:]")
|
os=$(uname | tr "[:upper:]" "[:lower:]")
|
||||||
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
|
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
|
return # already installed
|
||||||
fi
|
fi
|
||||||
if [[ ${os} == "darwin" ]]; then
|
if [[ ${os} == "darwin" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user