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

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