Skip to content

Commit

Permalink
Use FORCE_HOST_GO=y when building Kubernetes
Browse files Browse the repository at this point in the history
This is to bypass the automatic Go toolchain download which has been
added to Kubernetes 1.27 and has been backported to v1.26.3, v1.25.8
and v1.24.12.

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
(cherry picked from commit 05a2fa0)
  • Loading branch information
twz123 authored and github-actions[bot] committed Mar 22, 2023
1 parent 3be536c commit 5d31776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embedded-bins/kubernetes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN \
export KUBE_CGO_OVERRIDES=$commands; \
fi; \
mkdir /out; \
export FORCE_HOST_GO=y; \
export KUBE_GIT_VERSION="v$VERSION+k0s"; \
for cmd in $commands; do \
make GOFLAGS="${BUILD_GO_FLAGS} -tags=${BUILD_GO_TAGS}" GOLDFLAGS="${BUILD_GO_LDFLAGS_EXTRA}" WHAT=cmd/$cmd; \
Expand Down

0 comments on commit 5d31776

Please sign in to comment.