Commit de421716 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41994 from spiffxp/no-ls-etcd

Automatic merge from submit-queue allow `hack/lib/etcd.sh` to print version mismatch error message **What this PR does / why we need it**: `third_party/etcd` isn't guaranteed to be present, this was causing the `hack/lib/etcd.sh` script to fail on `ls` prior to printing out the error message about etcd version mismatch **Which issue this PR fixes**: fixes #41989 **Release note**: ```release-note NONE ```
parents 45242048 57170100
......@@ -40,7 +40,6 @@ kube::etcd::validate() {
export PATH=$KUBE_ROOT/third_party/etcd:$PATH
hash etcd
echo $PATH
ls $KUBE_ROOT/third_party/etcd
version=$(etcd --version | head -n 1 | cut -d " " -f 3)
if [[ "${version}" < "${ETCD_VERSION}" ]]; then
kube::log::usage "etcd version ${ETCD_VERSION} or greater required."
......
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