From 32ee90f029552146679e20f19b1fd3801fdcd796 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Tue, 18 Feb 2025 13:21:05 +0100 Subject: [PATCH] Upgrade Go version to 1.22 Signed-off-by: Guilherme Cassolato --- .github/workflows/code-style.yaml | 8 ++++---- .github/workflows/e2e-test.yaml | 2 +- .github/workflows/go-test.yaml | 2 +- .github/workflows/smoke-test.yaml | 2 +- Dockerfile | 2 +- docs/contributing.md | 2 +- docs/getting-started.md | 2 +- go.mod | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml index bdbb5c9c..aaa5238b 100644 --- a/.github/workflows/code-style.yaml +++ b/.github/workflows/code-style.yaml @@ -40,10 +40,10 @@ jobs: importpath: golang.org/x/tools/cmd/goimports@latest steps: - - name: Set up Go 1.21.x + - name: Set up Go 1.22.x uses: actions/setup-go@v4 with: - go-version: 1.21.x + go-version: 1.22.x id: go - name: Check out code @@ -88,10 +88,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.21.x + - name: Set up Go 1.22.x uses: actions/setup-go@v4 with: - go-version: 1.21.x + go-version: 1.22.x id: go - name: Check out code diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 706b502b..ebec2b7d 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -13,7 +13,7 @@ jobs: name: End-to-end Tests strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] platform: [ubuntu-latest] authconfig_version: [v1beta2, v1beta3] runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 1676b208..4dd440a0 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -12,7 +12,7 @@ jobs: name: Unit Tests strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} defaults: diff --git a/.github/workflows/smoke-test.yaml b/.github/workflows/smoke-test.yaml index 8a6393a3..e7763b6f 100644 --- a/.github/workflows/smoke-test.yaml +++ b/.github/workflows/smoke-test.yaml @@ -12,7 +12,7 @@ jobs: name: Smoke Tests strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} if: ${{ github.event.workflow_run.conclusion == 'success' }} diff --git a/Dockerfile b/Dockerfile index 010a6d26..b3ef93aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Build the authorino binary # https://catalog.redhat.com/software/containers/ubi9/go-toolset -FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.22 AS builder USER root WORKDIR /usr/src/authorino COPY ./ ./ diff --git a/docs/contributing.md b/docs/contributing.md index e09b10eb..82ed5cee 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -4,7 +4,7 @@ Minimum requirements to contribute to Authorino are: -- [Golang v1.21+](https://golang.org) +- [Golang v1.22+](https://golang.org) - [Docker](https://docker.com) Authorino's code was originally bundled using the [Operator SDK](https://sdk.operatorframework.io/) (v1.9.0). diff --git a/docs/getting-started.md b/docs/getting-started.md index ff812b9d..388fe9b1 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -10,7 +10,7 @@ If you prefer learning with an example, check out our [Hello World](./user-guide These are the platform requirements to use Authorino: -- [**Kubernetes**](https://kubernetes.io) server (recommended v1.21 or later), with permission to create Kubernetes Custom Resource Definitions (CRDs) (for bootstrapping Authorino and Authorino Operator) +- [**Kubernetes**](https://kubernetes.io) server (recommended v1.22 or later), with permission to create Kubernetes Custom Resource Definitions (CRDs) (for bootstrapping Authorino and Authorino Operator)
Alternative: K8s distros and platforms diff --git a/go.mod b/go.mod index 80ee0f7a..93f181a0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kuadrant/authorino -go 1.21 +go 1.22 require ( github.com/authzed/authzed-go v0.7.0