golang: Build 1.25.0 images - take #2 (copy golang binaries from golang alpine image)#4119
Conversation
11d10d8 to
dca886b
Compare
7e6177a to
32c6bd0
Compare
|
/kind feature |
saschagrunert
left a comment
There was a problem hiding this comment.
LGTM, PTAL @cpanato
/hold
|
@saschagrunert not sure if @cpanato is around this week per his last comment in the related PR: |
Co-Authored-by: Carlos Panato <ctadeu@gmail.com> [WIP] Copy golang binaries using alpine image
581d66c to
2586f7e
Compare
|
Added some missing packages found using - https://github.com/kubernetes/kubernetes/pull/134073/files |
|
kube-cross is now working fine in kubernetes/kubernetes#134073 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
||
| - name: "registry.k8s.io/build-image/go-runner (go1.25-bookworm)" | ||
| version: v2.4.0-go1.25rc2-bookworm.0 | ||
| version: v2.4.0-go1.25.1-bookworm.0 |
There was a problem hiding this comment.
@dims the image changes from this file needs to be promoted, do you want to take care of that?
|
late /lgtm thanks |
| ENV PATH=/usr/local/go/bin:$PATH | ||
| ENV GOROOT=/usr/local/go | ||
| ENV GOLANG_VERSION=${GO_VERSION} | ||
| ENV GOTOOLCHAIN=local |
There was a problem hiding this comment.
however, this also aligns with the golang image (which we use as a base) which also defaults to local ... :/
local means "always use my local version" ... which may defeat the .go-version logic
There was a problem hiding this comment.
we have this issue in most of our golang: image based environments. sent #4215 to start
What type of PR is this?
/kind feature
What this PR does / why we need it:
As the dockerhub images for golang do not support exactly the versions of debian we use/need, we should just grab the binaries from one of the golang images (picked the alpine image) and use them in the versions of debian we want. See discussions:
We can't just move to newer debian as that has newer glibc which leads to other problems:
/hold
/assign @saschagrunert @ameukam @puerco @MadhavJivrajani
cc @kubernetes/release-managers @liggitt
Which issue(s) this PR fixes:
xref #3957
Special notes for your reviewer:
Does this PR introduce a user-facing change?
PS: used @cpanato 's PR #4094 as a starting point.