Merge pull request #85601 from zhlhahaha/etcd-version-1358

fix etcd version check error on ARM
This commit is contained in:
Kubernetes Prow Robot 2019-11-25 09:04:17 -08:00 committed by GitHub
commit 2e57e54fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ kube::etcd::validate() {
fi
# validate installed version is at least equal to minimum
version=$(etcd --version | tail -n +1 | head -n 1 | cut -d " " -f 3)
version=$(etcd --version | grep Version | tail -n +1 | head -n 1 | cut -d " " -f 3)
if [[ $(kube::etcd::version "${ETCD_VERSION}") -gt $(kube::etcd::version "${version}") ]]; then
export PATH=${KUBE_ROOT}/third_party/etcd:${PATH}
hash etcd