From 51ee2b1f0bbf28474e17d640ebe5a2b677c1d131 Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Tue, 16 Apr 2019 15:39:48 +0800 Subject: [PATCH] Add an environment variable for bazel-test-integration on Arm Signed-off-by: Bin Lu --- test/integration/framework/etcd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/framework/etcd.go b/test/integration/framework/etcd.go index 97aa267f4bf..ac801a072fc 100644 --- a/test/integration/framework/etcd.go +++ b/test/integration/framework/etcd.go @@ -66,6 +66,10 @@ func getAvailablePort() (int, error) { // startEtcd executes an etcd instance. The returned function will signal the // etcd process and wait for it to exit. func startEtcd() (func(), error) { + if runtime.GOARCH == "arm64" { + os.Setenv("ETCD_UNSUPPORTED_ARCH", "arm64") + } + etcdURL = env.GetEnvAsStringOrFallback("KUBE_INTEGRATION_ETCD_URL", "http://127.0.0.1:2379") conn, err := net.Dial("tcp", strings.TrimPrefix(etcdURL, "http://")) if err == nil {