diff --git a/.github/workflows/lib-validate.yaml b/.github/workflows/lib-validate.yaml index beb7f6503..2c74e0a69 100644 --- a/.github/workflows/lib-validate.yaml +++ b/.github/workflows/lib-validate.yaml @@ -46,7 +46,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6 with: - version: v1.63.1 + version: v1.64.5 args: -v --timeout 5m build: name: Build and check device plugins diff --git a/Makefile b/Makefile index d5a038e2e..bbe30ac9f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ EXTRA_BUILD_ARGS ?= "" CERT_MANAGER_VERSION ?= v1.15.2 CONTROLLER_GEN_VERSION ?= v0.17.0 -GOLANGCI_LINT_VERSION ?= v1.63.1 +GOLANGCI_LINT_VERSION ?= v1.64.5 KIND_VERSION ?= v0.23.0 GOLICENSES_VERSION ?= v1.6.0 # Default bundle image tag @@ -170,7 +170,7 @@ e2e-spr: pre-pull: ifeq ($(TAG),devel) - @$(BUILDER) pull golang:1.23-bookworm + @$(BUILDER) pull golang:1.24-bookworm @$(BUILDER) pull debian:unstable-slim @$(BUILDER) pull ubuntu:22.04 endif diff --git a/build/docker/build-image.sh b/build/docker/build-image.sh index be52ebf64..032603f1f 100755 --- a/build/docker/build-image.sh +++ b/build/docker/build-image.sh @@ -31,7 +31,7 @@ fi BUILD_ARGS="${BUILD_ARGS} \ --build-arg FINAL_BASE=gcr.io/distroless/static \ - --build-arg BUILD_BASE=golang:1.23-bookworm \ + --build-arg BUILD_BASE=golang:1.24-bookworm \ --build-arg FINAL_BASE_DYN=debian:unstable-slim \ --build-arg ROCKYLINUX=0" diff --git a/build/docker/intel-deviceplugin-operator.Dockerfile b/build/docker/intel-deviceplugin-operator.Dockerfile index 61419067d..4b1f25d2c 100644 --- a/build/docker/intel-deviceplugin-operator.Dockerfile +++ b/build/docker/intel-deviceplugin-operator.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-dlb-initcontainer.Dockerfile b/build/docker/intel-dlb-initcontainer.Dockerfile index a3bf7819b..f44924531 100644 --- a/build/docker/intel-dlb-initcontainer.Dockerfile +++ b/build/docker/intel-dlb-initcontainer.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-dlb-plugin.Dockerfile b/build/docker/intel-dlb-plugin.Dockerfile index 6d72b388c..296c2eb36 100644 --- a/build/docker/intel-dlb-plugin.Dockerfile +++ b/build/docker/intel-dlb-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-dsa-plugin.Dockerfile b/build/docker/intel-dsa-plugin.Dockerfile index b83d5b834..e6e3f49e3 100644 --- a/build/docker/intel-dsa-plugin.Dockerfile +++ b/build/docker/intel-dsa-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-fpga-admissionwebhook.Dockerfile b/build/docker/intel-fpga-admissionwebhook.Dockerfile index 85ef39c63..a6beadcbb 100644 --- a/build/docker/intel-fpga-admissionwebhook.Dockerfile +++ b/build/docker/intel-fpga-admissionwebhook.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-fpga-initcontainer.Dockerfile b/build/docker/intel-fpga-initcontainer.Dockerfile index b5d80b969..90add768d 100644 --- a/build/docker/intel-fpga-initcontainer.Dockerfile +++ b/build/docker/intel-fpga-initcontainer.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-fpga-plugin.Dockerfile b/build/docker/intel-fpga-plugin.Dockerfile index 5dc694492..3bbbf8525 100644 --- a/build/docker/intel-fpga-plugin.Dockerfile +++ b/build/docker/intel-fpga-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-gpu-fakedev.Dockerfile b/build/docker/intel-gpu-fakedev.Dockerfile index 9f7491ed9..34e3c335b 100644 --- a/build/docker/intel-gpu-fakedev.Dockerfile +++ b/build/docker/intel-gpu-fakedev.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-gpu-initcontainer.Dockerfile b/build/docker/intel-gpu-initcontainer.Dockerfile index 412b4fdbb..da4b3e7ce 100644 --- a/build/docker/intel-gpu-initcontainer.Dockerfile +++ b/build/docker/intel-gpu-initcontainer.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-gpu-levelzero.Dockerfile b/build/docker/intel-gpu-levelzero.Dockerfile index 346ea9a6b..248687daa 100644 --- a/build/docker/intel-gpu-levelzero.Dockerfile +++ b/build/docker/intel-gpu-levelzero.Dockerfile @@ -35,7 +35,7 @@ ENV LDFLAGS="all=-linkmode=external -s -w" ARG GOLICENSES_VERSION ARG CMD ARG ROCKYLINUX -ARG CGO_VERSION=1.23 +ARG CGO_VERSION=1.24 RUN mkdir /runtime RUN if [ $ROCKYLINUX -eq 0 ]; then \ apt-get update && apt-get install --no-install-recommends -y wget libc6-dev ca-certificates ocl-icd-libopencl1 && \ diff --git a/build/docker/intel-gpu-plugin.Dockerfile b/build/docker/intel-gpu-plugin.Dockerfile index 39939cadf..c0daca080 100644 --- a/build/docker/intel-gpu-plugin.Dockerfile +++ b/build/docker/intel-gpu-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-iaa-plugin.Dockerfile b/build/docker/intel-iaa-plugin.Dockerfile index b335eafe8..ffa5b713b 100644 --- a/build/docker/intel-iaa-plugin.Dockerfile +++ b/build/docker/intel-iaa-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-qat-initcontainer.Dockerfile b/build/docker/intel-qat-initcontainer.Dockerfile index a5488b00a..94a09bc6d 100644 --- a/build/docker/intel-qat-initcontainer.Dockerfile +++ b/build/docker/intel-qat-initcontainer.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-qat-plugin-kerneldrv.Dockerfile b/build/docker/intel-qat-plugin-kerneldrv.Dockerfile index 4e9e15f46..3e3b98ad0 100644 --- a/build/docker/intel-qat-plugin-kerneldrv.Dockerfile +++ b/build/docker/intel-qat-plugin-kerneldrv.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-qat-plugin.Dockerfile b/build/docker/intel-qat-plugin.Dockerfile index d3d98452d..d963f4d0a 100644 --- a/build/docker/intel-qat-plugin.Dockerfile +++ b/build/docker/intel-qat-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-sgx-admissionwebhook.Dockerfile b/build/docker/intel-sgx-admissionwebhook.Dockerfile index 6b9abf031..8aca1086a 100644 --- a/build/docker/intel-sgx-admissionwebhook.Dockerfile +++ b/build/docker/intel-sgx-admissionwebhook.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-sgx-initcontainer.Dockerfile b/build/docker/intel-sgx-initcontainer.Dockerfile index 47a716190..fd6d54d9d 100644 --- a/build/docker/intel-sgx-initcontainer.Dockerfile +++ b/build/docker/intel-sgx-initcontainer.Dockerfile @@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-sgx-plugin.Dockerfile b/build/docker/intel-sgx-plugin.Dockerfile index e83a1571d..06a001000 100644 --- a/build/docker/intel-sgx-plugin.Dockerfile +++ b/build/docker/intel-sgx-plugin.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/intel-xpumanager-sidecar.Dockerfile b/build/docker/intel-xpumanager-sidecar.Dockerfile index 6835154e0..96bdc9a83 100644 --- a/build/docker/intel-xpumanager-sidecar.Dockerfile +++ b/build/docker/intel-xpumanager-sidecar.Dockerfile @@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### FROM ${GOLANG_BASE} AS builder ARG DIR=/intel-device-plugins-for-kubernetes diff --git a/build/docker/lib/golang_base.docker b/build/docker/lib/golang_base.docker index 47a5fbbbf..2702d8e61 100644 --- a/build/docker/lib/golang_base.docker +++ b/build/docker/lib/golang_base.docker @@ -5,5 +5,5 @@ ## ## This is used on release branches before tagging a stable version. ## The main branch defaults to using the latest Golang base image. -ARG GOLANG_BASE=golang:1.23-bookworm +ARG GOLANG_BASE=golang:1.24-bookworm ### diff --git a/build/docker/templates/intel-gpu-levelzero.Dockerfile.in b/build/docker/templates/intel-gpu-levelzero.Dockerfile.in index b95ad6f6c..f45dc68f4 100644 --- a/build/docker/templates/intel-gpu-levelzero.Dockerfile.in +++ b/build/docker/templates/intel-gpu-levelzero.Dockerfile.in @@ -26,7 +26,7 @@ ENV LDFLAGS="all=-linkmode=external -s -w" ARG GOLICENSES_VERSION ARG CMD ARG ROCKYLINUX -ARG CGO_VERSION=1.23 +ARG CGO_VERSION=1.24 RUN mkdir /runtime diff --git a/go.mod b/go.mod index 95956f57e..61ef96f03 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/intel/intel-device-plugins-for-kubernetes -go 1.23.0 +go 1.24.0 require ( github.com/fsnotify/fsnotify v1.8.0