Blob Blame History Raw
From 9166e94205928cf30a09cc6b6703dd88d8a06ec5 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Tue, 8 Jan 2019 10:58:03 +0100
Subject: [PATCH] expand etcd arch validation

---
 etcdmain/etcd.go | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/etcdmain/etcd.go b/etcdmain/etcd.go
index 87e9b25..9fcde77 100644
--- a/etcdmain/etcd.go
+++ b/etcdmain/etcd.go
@@ -387,6 +387,13 @@ func checkSupportArch() {
 	if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" {
 		return
 	}
+
+	if runtime.GOARCH == "arm64" || runtime.GOARCH == "s390x" {
+		plog.Warningf("Running etcd on %s architecture is experimental.", runtime.GOARCH)
+		plog.Warningf("Please report any bugs you encounter: https://bugzilla.redhat.com/")
+		return
+	}
+
 	// unsupported arch only configured via environment variable
 	// so unset here to not parse through flag
 	defer os.Unsetenv("ETCD_UNSUPPORTED_ARCH")
-- 
2.7.5