Merge pull request #109594 from linux-on-ibm-z/fastbuild_s390x

Add fast build support for s390x
This commit is contained in:
Kubernetes Prow Robot 2022-06-05 23:42:23 -07:00 committed by GitHub
commit 2d7dcf928c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,8 +213,8 @@ kube::golang::setup_platforms() {
elif [[ "${KUBE_FASTBUILD:-}" == "true" ]]; then
host_arch=$(kube::util::host_arch)
if [[ "${host_arch}" != "amd64" && "${host_arch}" != "arm64" && "${host_arch}" != "ppc64le" ]]; then
# on any platform other than amd64, arm64 and ppc64le, we just default to amd64
if [[ "${host_arch}" != "amd64" && "${host_arch}" != "arm64" && "${host_arch}" != "ppc64le" && "${host_arch}" != "s390x" ]]; then
# on any platform other than amd64, arm64, ppc64le and s390x, we just default to amd64
host_arch="amd64"
fi
KUBE_SERVER_PLATFORMS=("linux/${host_arch}")