From 5147b7ecb5a1c645cc430dce15a393a7b3f7636d Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Fri, 7 Jun 2024 13:41:20 +0200 Subject: [PATCH 1/2] Build with go `v1.22` Updating the build to go v1.22 is a requirement for bumping to `k8s.io/kubelet@v1.30` Refs - https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pull/562 Signed-off-by: Andrea Panattoni --- .github/workflows/build-test-lint.yml | 10 +++++----- go.mod | 2 +- images/Dockerfile | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-test-lint.yml b/.github/workflows/build-test-lint.yml index db7b4ed75..3d8bb0ec8 100644 --- a/.github/workflows/build-test-lint.yml +++ b/.github/workflows/build-test-lint.yml @@ -5,7 +5,7 @@ jobs: name: build strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] goarch: [amd64] os: [ubuntu-latest] runs-on: ${{ matrix.os }} @@ -32,7 +32,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - name: Check out code into the Go module directory uses: actions/checkout@v3 @@ -51,7 +51,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - uses: actions/checkout@v3 @@ -74,7 +74,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 @@ -113,7 +113,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x # if this fails, run go mod tidy - name: Check if module files are consistent with code diff --git a/go.mod b/go.mod index 923480604..a2c090190 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/k8snetworkplumbingwg/sriov-network-device-plugin -go 1.21 +go 1.22 require ( github.com/Mellanox/rdmamap v1.1.0 diff --git a/images/Dockerfile b/images/Dockerfile index 155e3bc8e..55db1a601 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.22-alpine as builder COPY . /usr/src/sriov-network-device-plugin From b413db3f930a281992caa6c4c1fbcff1a7fa27af Mon Sep 17 00:00:00 2001 From: Balazs Nemeth Date: Mon, 1 Jul 2024 12:16:51 +0200 Subject: [PATCH 2/2] Bump to 1.22.4 Signed-off-by: Balazs Nemeth --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index a2c090190..98f083b14 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/k8snetworkplumbingwg/sriov-network-device-plugin -go 1.22 +go 1.22.4 require ( github.com/Mellanox/rdmamap v1.1.0