From 4774e7146e0980b0ab9e0a8027e50254e7f6945d Mon Sep 17 00:00:00 2001 From: Peeyush Gupta Date: Wed, 9 Dec 2015 12:12:13 +0530 Subject: [PATCH] Add support for ppc64le architecture. --- cluster/get-kube.sh | 4 +++- cluster/kubectl.sh | 5 ++++- hack/lib/util.sh | 5 ++++- hack/local-up-cluster.sh | 5 ++++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/cluster/get-kube.sh b/cluster/get-kube.sh index a876c5131f0..5c0bcce6a66 100755 --- a/cluster/get-kube.sh +++ b/cluster/get-kube.sh @@ -98,9 +98,11 @@ elif [[ "${machine}" == "arm*" ]]; then arch="arm" elif [[ "${machine}" == "s390x*" ]]; then arch="s390x" +elif [[ "${machine}" == "ppc64le" ]]; then + arch="ppc64le" else echo "Unknown, unsupported architecture (${machine})." - echo "Supported architectures x86_64, i686, arm, s390x." + echo "Supported architectures x86_64, i686, arm, s390x, ppc64le." echo "Bailing out." exit 3 fi diff --git a/cluster/kubectl.sh b/cluster/kubectl.sh index 9511b1bdd91..178aefcb9bb 100755 --- a/cluster/kubectl.sh +++ b/cluster/kubectl.sh @@ -73,8 +73,11 @@ case "$(uname -m)" in s390x*) host_arch=s390x ;; + ppc64le*) + host_arch=ppc64le + ;; *) - echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2 + echo "Unsupported host arch. Must be x86_64, 386, arm, s390x or ppc64le." >&2 exit 1 ;; esac diff --git a/hack/lib/util.sh b/hack/lib/util.sh index d7f90276a66..993e5d9cb64 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -153,8 +153,11 @@ kube::util::host_platform() { s390x*) host_arch=s390x ;; + ppc64le*) + host_arch=ppc64le + ;; *) - kube::log::error "Unsupported host arch. Must be x86_64, 386, arm or s390x." + kube::log::error "Unsupported host arch. Must be x86_64, 386, arm, s390x or ppc64le." exit 1 ;; esac diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 9993994d7fd..882f6fa1ffc 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -138,8 +138,11 @@ function detect_binary { s390x*) host_arch=s390x ;; + ppc64le*) + host_arch=ppc64le + ;; *) - echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2 + echo "Unsupported host arch. Must be x86_64, 386, arm, s390x or ppc64le." >&2 exit 1 ;; esac