You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify verify_go_version to avoid GOTOOLCHAIN/gimme issues
- Add watch-termination and k8s-tests-ext to build targets
- Set KUBE_STATIC_BINARIES to empty
- Add setup_gomaxprocs function
- Update build/pause/Dockerfile.Rhel to use Go 1.25 builder
Signed-off-by: Harshal Patil <harpatil@redhat.com>
# GOMAXPROCS by default does not reflect the number of cpu(s) available
594
+
# when running in a container, please see https://github.com/golang/go/issues/33803
595
+
if [[ -z"${GOMAXPROCS:-}" ]];then
596
+
if!command -v ncpu >/dev/null 2>&1;then
597
+
GOTOOLCHAIN="$(kube::golang::hack_tools_gotoolchain)" go -C "${KUBE_ROOT}/hack/tools" install -mod=readonly ./ncpu ||echo"Will not automatically set GOMAXPROCS"
598
+
fi
599
+
ifcommand -v ncpu >/dev/null 2>&1;then
600
+
GOMAXPROCS=$(ncpu)
601
+
export GOMAXPROCS
602
+
kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
603
+
fi
604
+
fi
605
+
}
606
+
641
607
# This will take binaries from $GOPATH/bin and copy them to the appropriate
0 commit comments