From 26313ed2b0cf7ee3a1c0ce1cbfa14a7e1479f9d7 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 17 Mar 2023 10:12:27 -0400 Subject: [PATCH] Move the arm deprecation notice in a different spot Signed-off-by: Davanum Srinivas --- hack/lib/golang.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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