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

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