diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-03-15 19:06:05 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-03-15 19:09:05 +0000 |
commit | 54f80102b0245ae7ca37103dafcf63c52ea47c89 (patch) | |
tree | 87621ff53e602337f23d8cc7f75b8adab7094cdf /recipes-containers/cri-tools | |
parent | 5984a2e4b640be44cec4988cdbd076ee12af9822 (diff) | |
download | meta-virtualization-54f80102b0245ae7ca37103dafcf63c52ea47c89.tar.gz |
k3s: set version.UpstreamGolang in binaries
k3s will refuse to start if the golang version it was built
with doesn't match the VERSION_GOLANG linker variable.
As an example: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/61668
We query our version of the compiler and set it in the binaries
to ensure they match.
Note: this may cause issues if you bump the golang compiler, but
k3s doesn't rebuild. We'll worry about that when it happens.
With this change, k3s starts and the node becomes ready.
root@qemux86-64:~# uname -a
Linux qemux86-64 6.6.20-yocto-standard #1 SMP PREEMPT_DYNAMIC Sun Mar 3 16:28:22 UTC 2024 x86_64 GNU/Linux
root@qemux86-64:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
qemux86-64 Ready control-plane,master 10m v1.28.7-k3s1
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/cri-tools')
0 files changed, 0 insertions, 0 deletions