Merge pull request #76608 from suigh/b1_etcd.sh

update the output of install-etcd.sh, show how to export the environment of etcd
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-19 20:29:42 -07:00 committed by GitHub
commit f980370fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -112,9 +112,9 @@ kube::etcd::install() {
cd "${KUBE_ROOT}/third_party" || return 1
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
kube::log::info "etcd v${ETCD_VERSION} already installed. To use:"
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
return #already installed
fi
if [[ ${os} == "darwin" ]]; then
@ -133,6 +133,6 @@ kube::etcd::install() {
rm "${download_file}"
fi
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
kube::log::info "export PATH=$(pwd)/etcd:\${PATH}"
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
)
}