Commit e698682a authored by danielqsj's avatar danielqsj

change a way to pass SC2164 in etcd.sh

parent c215966d
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
# A set of helpers for starting/running etcd for tests # A set of helpers for starting/running etcd for tests
set -o errexit
set -o nounset
set -o pipefail
ETCD_VERSION=${ETCD_VERSION:-3.3.10} ETCD_VERSION=${ETCD_VERSION:-3.3.10}
ETCD_HOST=${ETCD_HOST:-127.0.0.1} ETCD_HOST=${ETCD_HOST:-127.0.0.1}
ETCD_PORT=${ETCD_PORT:-2379} ETCD_PORT=${ETCD_PORT:-2379}
...@@ -114,7 +110,7 @@ kube::etcd::install() { ...@@ -114,7 +110,7 @@ kube::etcd::install() {
os=$(kube::util::host_os) os=$(kube::util::host_os)
arch=$(kube::util::host_arch) arch=$(kube::util::host_arch)
cd "${KUBE_ROOT}/third_party" cd "${KUBE_ROOT}/third_party" || return 1
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 "etcd v${ETCD_VERSION} already installed at path:"
kube::log::info "$(pwd)/$(readlink etcd)" kube::log::info "$(pwd)/$(readlink etcd)"
......
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