Skip to content

Commit 09d4d65

Browse files
committed
fix etcd version check error on ARM
"etcd -version" command output an additional line on ARM platform: "running etcd on unsupported architecture "arm64" since ETCD_UNSUPPORTED_ARCH is set" Currently etcd version filtering code can not get correct version number. Signed-off-by: Howard Zhang <[email protected]>
1 parent 9905a33 commit 09d4d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/etcd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ kube::etcd::validate() {
4646
fi
4747

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

0 commit comments

Comments
 (0)