Blame SOURCES/expand-etcd-arch-validation.patch

62780e
From b3e78645c1ffa84bcde511c90df4e3dde652c3fa Mon Sep 17 00:00:00 2001
62780e
From: Jan Chaloupka <jchaloup@redhat.com>
62780e
Date: Tue, 8 Aug 2017 15:01:04 +0200
62780e
Subject: [PATCH] expand etcd arch validation
62780e
62780e
---
62780e
 etcdmain/etcd.go | 7 +++++++
62780e
 1 file changed, 7 insertions(+)
62780e
62780e
diff --git a/etcdmain/etcd.go b/etcdmain/etcd.go
62780e
index 2f7f00d..61553d4 100644
62780e
--- a/etcdmain/etcd.go
62780e
+++ b/etcdmain/etcd.go
62780e
@@ -396,6 +396,13 @@ func checkSupportArch() {
62780e
 	if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" {
62780e
 		return
62780e
 	}
62780e
+
62780e
+	if runtime.GOARCH == "arm64" || runtime.GOARCH == "s390x" {
62780e
+		plog.Warningf("Running etcd on %s architecture is experimental.", runtime.GOARCH)
62780e
+		plog.Warningf("Please report any bugs you encounter: https://bugzilla.redhat.com/")
62780e
+		return
62780e
+	}
62780e
+
62780e
 	if env, ok := os.LookupEnv("ETCD_UNSUPPORTED_ARCH"); ok && env == runtime.GOARCH {
62780e
 		plog.Warningf("running etcd on unsupported architecture %q since ETCD_UNSUPPORTED_ARCH is set", env)
62780e
 		return
62780e
-- 
62780e
2.7.5
62780e