mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Check KUBE_SERVER_PLATFORMS existence
when compile kubectl on platform other than linux/amd64, we need to check the KUBE_SERVER_PLATFORMS array emptiness before assign it. the example command is: make WHAT=cmd/kubectl KUBE_BUILD_PLATFORMS="darwin/amd64 windows/amd64"
This commit is contained in:
parent
667c3ed94c
commit
6c8aabc832
@ -302,7 +302,7 @@ kube::golang::server_test_targets() {
|
|||||||
IFS=" " read -ra KUBE_TEST_SERVER_TARGETS <<< "$(kube::golang::server_test_targets)"
|
IFS=" " read -ra KUBE_TEST_SERVER_TARGETS <<< "$(kube::golang::server_test_targets)"
|
||||||
readonly KUBE_TEST_SERVER_TARGETS
|
readonly KUBE_TEST_SERVER_TARGETS
|
||||||
readonly KUBE_TEST_SERVER_BINARIES=("${KUBE_TEST_SERVER_TARGETS[@]##*/}")
|
readonly KUBE_TEST_SERVER_BINARIES=("${KUBE_TEST_SERVER_TARGETS[@]##*/}")
|
||||||
readonly KUBE_TEST_SERVER_PLATFORMS=("${KUBE_SERVER_PLATFORMS[@]}")
|
readonly KUBE_TEST_SERVER_PLATFORMS=("${KUBE_SERVER_PLATFORMS[@]:+"${KUBE_SERVER_PLATFORMS[@]}"}")
|
||||||
|
|
||||||
# Gigabytes necessary for parallel platform builds.
|
# Gigabytes necessary for parallel platform builds.
|
||||||
# As of January 2018, RAM usage is exceeding 30G
|
# As of January 2018, RAM usage is exceeding 30G
|
||||||
|
Loading…
Reference in New Issue
Block a user