Commit 5e923ddc authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38111 from henrynash/pipe141error

Automatic merge from submit-queue (batch tested with PRs 38111, 38121) Prevent SIGPIPE errors causing the version check line to fail The way we use pipe in hack/lib/etcd.sh when processing the version command can lead to 141 failues on some systems. Using a prefix of tail can prevent this. Fixes #38109
parents 55f13b57 ec331646
...@@ -32,7 +32,7 @@ kube::etcd::start() { ...@@ -32,7 +32,7 @@ kube::etcd::start() {
exit 1 exit 1
fi fi
version=$(etcd --version | head -n 1 | cut -d " " -f 3) version=$(etcd --version | tail -n +1 | head -n 1 | cut -d " " -f 3)
if [[ "${version}" < "${ETCD_VERSION}" ]]; then if [[ "${version}" < "${ETCD_VERSION}" ]]; then
kube::log::usage "etcd version ${ETCD_VERSION} or greater required." kube::log::usage "etcd version ${ETCD_VERSION} or greater required."
kube::log::info "You can use 'hack/install-etcd.sh' to install a copy in third_party/." kube::log::info "You can use 'hack/install-etcd.sh' to install a copy in third_party/."
......
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