mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
log useful information instead of silent exit without error when etcd has already been installed
This commit is contained in:
parent
8b98e802ed
commit
c53d76d535
@ -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