Skip to content

Commit 38967e0

Browse files
committed
chore(images): modernize Go builder images to 1.26
Several first-party images still built their Go binaries with EOL or behind-latest toolchains (golang 1.20, 1.20.6, 1.23.4, 1.24, 1.25), so a plain rebuild kept shipping standard-library versions that the current 1.26 toolchain fixes. Raise every Go builder image (FROM and the builder_image ARG defaults) to golang:1.26 across cluster-autoscaler, kubevirt-cloud-provider, redis-operator, multus-cni, keycloak-operator, objectstorage, kilo and linstor-csi. This is the build-time counterpart to raising the go directive in the first-party Go modules: the toolchain that compiles the binary, not the go.mod minimum, determines the standard-library version baked into the image. Assisted-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent ae44dfd commit 38967e0

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎packages/apps/kubernetes/images/cluster-autoscaler/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source: https://raw.githubusercontent.com/kubernetes/autoscaler/refs/heads/master/cluster-autoscaler/Dockerfile.amd64
2-
ARG builder_image=docker.io/library/golang:1.23.4
2+
ARG builder_image=docker.io/library/golang:1.26
33
ARG BASEIMAGE=gcr.io/distroless/static:nonroot-${TARGETARCH}
44

55
FROM ${builder_image} AS builder

‎packages/apps/kubernetes/images/kubevirt-cloud-provider/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source: https://github.com/kubevirt/cloud-provider-kubevirt/blob/main/build/images/kubevirt-cloud-controller-manager/Dockerfile
2-
FROM golang:1.20.6 AS builder
2+
FROM golang:1.26 AS builder
33

44
ARG TARGETOS
55
ARG TARGETARCH

‎packages/system/keycloak-operator/images/keycloak-operator/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN curl -sSL https://github.com/epam/edp-keycloak-operator/archive/${COMMIT_REF
1111
COPY patches /patches
1212
RUN git apply /patches/*.diff
1313

14-
FROM --platform=$BUILDPLATFORM docker.io/golang:1.24 AS builder
14+
FROM --platform=$BUILDPLATFORM docker.io/golang:1.26 AS builder
1515
ARG TARGETOS
1616
ARG TARGETARCH
1717

‎packages/system/kilo/images/kilo/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the kg binary
2-
FROM --platform=$BUILDPLATFORM golang:1.25 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.26 AS builder
33

44
ARG VERSION=fbce60d8033da073748f5b0d6ce0f1e216f03e7f
55
ARG TARGETOS

‎packages/system/linstor/images/linstor-csi/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25 AS builder
1+
FROM golang:1.26 AS builder
22

33
ARG VERSION=v1.10.6
44
ARG LINSTOR_WAIT_UNTIL_VERSION=v0.3.1

‎packages/system/multus/images/multus-cni/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.24 AS build
1+
FROM --platform=$BUILDPLATFORM golang:1.26 AS build
22

33
ARG VERSION=v4.2.3
44
ARG TARGETPLATFORM

‎packages/system/objectstorage-controller/images/objectstorage/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN curl -sSL https://github.com/kubernetes-sigs/container-object-storage-interf
1111
COPY patches /patches
1212
RUN git apply /patches/*.diff
1313

14-
FROM --platform=$BUILDPLATFORM docker.io/golang:1.24 AS builder
14+
FROM --platform=$BUILDPLATFORM docker.io/golang:1.26 AS builder
1515
ARG TARGETOS
1616
ARG TARGETARCH
1717

‎packages/system/redis-operator/images/redis-operator/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 AS builder
1+
FROM golang:1.26 AS builder
22

33
ARG VERSION=v1.3.0-rc1
44

0 commit comments

Comments
 (0)