diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index d7fccf1211c..c27f0a2d754 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -248,8 +248,6 @@ kube::golang::setup_platforms() { fi } -kube::log::status "WARNING: linux/arm will no longer be built/shipped by default, please build it explicitly if needed." -kube::log::status " support for linux/arm will be removed in a subsequent release." kube::golang::setup_platforms # The set of client targets that we are building for all platforms @@ -885,6 +883,9 @@ kube::golang::build_binaries() { IFS=" " read -ra platforms <<< "${KUBE_BUILD_PLATFORMS:-}" if [[ ${#platforms[@]} -eq 0 ]]; then platforms=("${host_platform}") + else + kube::log::status "WARNING: linux/arm will no longer be built/shipped by default, please build it explicitly if needed." + kube::log::status " support for linux/arm will be removed in a subsequent release." fi local -a binaries