Skip to content

Commit

Permalink
Added support for IBM z Systems architecture (s390x)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajju26 committed Nov 26, 2015
1 parent 809f4e1 commit 94093d9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cluster/get-kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ elif [[ "${machine}" == "i686" ]]; then
arch="386"
elif [[ "${machine}" == "arm*" ]]; then
arch="arm"
elif [[ "${machine}" == "s390x*" ]]; then
arch="s390x"
else
echo "Unknown, unsupported architecture (${machine})."
echo "Supported architectures x86_64, i686, arm*"
echo "Supported architectures x86_64, i686, arm, s390x."
echo "Bailing out."
exit 3
fi
Expand Down
5 changes: 4 additions & 1 deletion cluster/kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ case "$(uname -m)" in
i?86*)
host_arch=386
;;
s390x*)
host_arch=s390x
;;
*)
echo "Unsupported host arch. Must be x86_64, 386 or arm." >&2
echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2
exit 1
;;
esac
Expand Down
7 changes: 5 additions & 2 deletions hack/lib/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ kube::util::host_platform() {
i?86*)
host_arch=x86
;;
*)
kube::log::error "Unsupported host arch. Must be x86_64, 386 or arm."
s390x*)
host_arch=s390x
;;
*)
kube::log::error "Unsupported host arch. Must be x86_64, 386, arm or s390x."
exit 1
;;
esac
Expand Down
5 changes: 4 additions & 1 deletion hack/local-up-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ function detect_binary {
i?86*)
host_arch=x86
;;
s390x*)
host_arch=s390x
;;
*)
echo "Unsupported host arch. Must be x86_64, 386 or arm." >&2
echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2
exit 1
;;
esac
Expand Down

2 comments on commit 94093d9

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 6901 outcome was FAILURE
Summary: Exit code 1 Build time: 00:02:15

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 6902 outcome was FAILURE
Summary: Exit code 1 Build time: 00:01:56

Please sign in to comment.