From dec143600a7c4e6b268417dcbec0a847703c47ce Mon Sep 17 00:00:00 2001 From: orangain Date: Mon, 25 May 2015 22:06:14 +0900 Subject: [PATCH] kubectl's dir should be 386 not x86 in x86 enviroment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before applying this patch, `cluster/kubectl.sh` failed to find `kubectl` binary in x86 environment. e.g. The latest release v0.17.1 contains following binaries: https://github.com/GoogleCloudPlatform/kubernetes/releases/tag/v0.17.1 ``` $ tree platforms/ platforms/ ├── darwin │   ├── 386 │   │   └── kubectl │   └── amd64 │   └── kubectl ├── linux │   ├── 386 │   │   └── kubectl │   ├── amd64 │   │   └── kubectl │   └── arm │   └── kubectl └── windows └── amd64 └── kubectl.exe ``` --- cluster/kubectl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/kubectl.sh b/cluster/kubectl.sh index df35ab1620c..e62be51c42b 100755 --- a/cluster/kubectl.sh +++ b/cluster/kubectl.sh @@ -59,7 +59,7 @@ case "$(uname -m)" in host_arch=arm ;; i?86*) - host_arch=x86 + host_arch=386 ;; *) echo "Unsupported host arch. Must be x86_64, 386 or arm." >&2