From ab3a5d0707cbcf3074d434a9fcf1c1cbc4b16f43 Mon Sep 17 00:00:00 2001 From: Marina Koushnir Date: Mon, 17 Nov 2025 13:48:15 +0200 Subject: [PATCH 1/2] feat(ws): Upgrade Go to 1.24 - tensorboard-controller component Signed-off-by: Marina Koushnir --- components/tensorboard-controller/Dockerfile | 2 +- components/tensorboard-controller/go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tensorboard-controller/Dockerfile b/components/tensorboard-controller/Dockerfile index a19232a0a..450d063e1 100644 --- a/components/tensorboard-controller/Dockerfile +++ b/components/tensorboard-controller/Dockerfile @@ -3,7 +3,7 @@ # # ${PATH_TO_KUBEFLOW/KUBEFLOW repo}/components # -FROM golang:1.17 as builder +FROM golang:1.24 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/components/tensorboard-controller/go.mod b/components/tensorboard-controller/go.mod index 7f39d13ec..08520ec88 100644 --- a/components/tensorboard-controller/go.mod +++ b/components/tensorboard-controller/go.mod @@ -1,6 +1,6 @@ module github.com/kubeflow/kubeflow/components/tensorboard-controller -go 1.17 +go 1.24 require ( github.com/go-logr/logr v1.2.0 From d26ee6ff63c006c04b13072a6631e1c4a98bfce9 Mon Sep 17 00:00:00 2001 From: Marina Koushnir Date: Mon, 17 Nov 2025 13:48:15 +0200 Subject: [PATCH 2/2] feat(ws): Upgrade Go to 1.24 - tensorboard-controller component Signed-off-by: Marina Koushnir --- components/tensorboard-controller/Dockerfile | 13 ++++++------- components/tensorboard-controller/go.mod | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/tensorboard-controller/Dockerfile b/components/tensorboard-controller/Dockerfile index a19232a0a..edefb645d 100644 --- a/components/tensorboard-controller/Dockerfile +++ b/components/tensorboard-controller/Dockerfile @@ -3,25 +3,24 @@ # # ${PATH_TO_KUBEFLOW/KUBEFLOW repo}/components # -FROM golang:1.17 as builder +FROM golang:1.24 as builder -WORKDIR /workspace +WORKDIR /workspace/tensorboard-controller # Copy the Go Modules manifests COPY tensorboard-controller /workspace/tensorboard-controller # cache deps before building and copying source so that we don't need to re-download as much # and so that source changes don't invalidate our downloaded layer -RUN cd /workspace/tensorboard-controller && go mod download - -WORKDIR /workspace/tensorboard-controller +COPY tensorboard-controller/go.mod tensorboard-controller/go.sum ./ +RUN go mod download # Build -RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o manager main.go +RUN CGO_ENABLED=0 GOOS=linux go build -a -o /manager main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details FROM gcr.io/distroless/static:nonroot WORKDIR / -COPY --from=builder /workspace/tensorboard-controller/manager . USER 65532:65532 +COPY --from=builder /manager /manager ENTRYPOINT ["/manager"] diff --git a/components/tensorboard-controller/go.mod b/components/tensorboard-controller/go.mod index 7f39d13ec..08520ec88 100644 --- a/components/tensorboard-controller/go.mod +++ b/components/tensorboard-controller/go.mod @@ -1,6 +1,6 @@ module github.com/kubeflow/kubeflow/components/tensorboard-controller -go 1.17 +go 1.24 require ( github.com/go-logr/logr v1.2.0