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

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