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

e1ecd9
From 9166e94205928cf30a09cc6b6703dd88d8a06ec5 Mon Sep 17 00:00:00 2001
634469
From: Jan Chaloupka <jchaloup@redhat.com>
e1ecd9
Date: Tue, 8 Jan 2019 10:58:03 +0100
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
e1ecd9
index 87e9b25..9fcde77 100644
634469
--- a/etcdmain/etcd.go
634469
+++ b/etcdmain/etcd.go
e1ecd9
@@ -387,6 +387,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
+
e1ecd9
 	// unsupported arch only configured via environment variable
e1ecd9
 	// so unset here to not parse through flag
e1ecd9
 	defer os.Unsetenv("ETCD_UNSUPPORTED_ARCH")
634469
-- 
634469
2.7.5
634469