From c2b3031faadf379504a8f1777d0b499afc100255 Mon Sep 17 00:00:00 2001 From: Balazs Nemeth Date: Thu, 13 Jun 2024 11:57:57 +0200 Subject: [PATCH] Bump go version to 1.22 Signed-off-by: Balazs Nemeth --- .github/workflows/test.yml | 28 +++++++++++++------------- Dockerfile | 2 +- Dockerfile.sriov-network-config-daemon | 2 +- Dockerfile.webhook | 2 +- go.mod | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 616c54053..b936bb434 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.21 + - name: Set up Go 1.22 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@v2 @@ -32,10 +32,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v2 with: - go-version: 1.21.x + go-version: 1.22.x - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -60,10 +60,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v2 with: - go-version: 1.21.x + go-version: 1.22.x - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -75,10 +75,10 @@ jobs: name: Golangci-lint runs-on: ubuntu-latest steps: - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v2 with: - go-version: 1.21.x + go-version: 1.22.x - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: golangci-lint @@ -92,10 +92,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v2 with: - go-version: 1.21.x + go-version: 1.22.x - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -132,10 +132,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - name: run test run: make test-e2e-conformance-virtual-k8s-cluster-ci @@ -166,10 +166,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Set up Go 1.21 + - name: Set up Go 1.22 uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - name: run test run: make test-e2e-conformance-virtual-ocp-cluster-ci diff --git a/Dockerfile b/Dockerfile index 8e503f2ad..2b26247e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 AS builder +FROM golang:1.22 AS builder WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator COPY . . RUN make _build-manager BIN_PATH=build/_output/cmd diff --git a/Dockerfile.sriov-network-config-daemon b/Dockerfile.sriov-network-config-daemon index 6f7069362..219d77c6d 100644 --- a/Dockerfile.sriov-network-config-daemon +++ b/Dockerfile.sriov-network-config-daemon @@ -1,4 +1,4 @@ -FROM golang:1.21 AS builder +FROM golang:1.22 AS builder WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator COPY . . RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd diff --git a/Dockerfile.webhook b/Dockerfile.webhook index 7aa026e73..7c2e7f3d5 100644 --- a/Dockerfile.webhook +++ b/Dockerfile.webhook @@ -1,4 +1,4 @@ -FROM golang:1.21 AS builder +FROM golang:1.22 AS builder WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator COPY . . RUN make _build-webhook BIN_PATH=build/_output/cmd diff --git a/go.mod b/go.mod index 6af5986b9..03c0cd5ff 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/k8snetworkplumbingwg/sriov-network-operator -go 1.21 +go 1.22 require ( github.com/Masterminds/sprig/v3 v3.2.2