From b9c000fb8f48a5dc4b6da0ce79dd34ef5f7ba75e Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Sat, 8 May 2021 02:26:50 -0700 Subject: [PATCH] server/etcdmain: officially supports "arm64" Signed-off-by: Gyuho Lee --- server/etcdmain/etcd.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/etcdmain/etcd.go b/server/etcdmain/etcd.go index 0dc74cebc9f..c90557a5a0f 100644 --- a/server/etcdmain/etcd.go +++ b/server/etcdmain/etcd.go @@ -463,8 +463,11 @@ func identifyDataDirOrDie(lg *zap.Logger, dir string) dirType { } func checkSupportArch() { - // TODO qualify arm64 - if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" || runtime.GOARCH == "s390x" { + // to add a new platform, check https://github.com/etcd-io/website/blob/master/content/en/docs/next/op-guide/supported-platform.md + if runtime.GOARCH == "amd64" || + runtime.GOARCH == "arm64" || + runtime.GOARCH == "ppc64le" || + runtime.GOARCH == "s390x" { return } // unsupported arch only configured via environment variable