From c5e722e73b3f97ca864defd11ae967e47bd420ff Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 17 Dec 2024 14:46:11 +0100 Subject: [PATCH] build: require go 1.23 or newer Latest Kubernetes packages depend on Go 1.23.0. Signed-off-by: Niels de Vos --- Dockerfile | 2 +- build/Containerfile.sidecar | 2 +- go.mod | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cade1bfd4..16025b571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.22 AS builder +FROM golang:1.23 AS builder # Copy the contents of the repository COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons diff --git a/build/Containerfile.sidecar b/build/Containerfile.sidecar index a74a65c56..bf1240cc1 100644 --- a/build/Containerfile.sidecar +++ b/build/Containerfile.sidecar @@ -1,5 +1,5 @@ # Build the sidecar binary -FROM golang:1.22 AS builder +FROM golang:1.23 AS builder # Copy the contents of the repository COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons diff --git a/go.mod b/go.mod index f789fa555..ceaed82d7 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/csi-addons/kubernetes-csi-addons -go 1.22.7 - -toolchain go1.22.9 +go 1.23.0 require ( github.com/container-storage-interface/spec v1.11.0