diff --git a/.github/workflows/kind-e2e.yaml b/.github/workflows/kind-e2e.yaml index 53de9186ae..4d223d6832 100644 --- a/.github/workflows/kind-e2e.yaml +++ b/.github/workflows/kind-e2e.yaml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - k8sVersion: ["1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x", "1.30.x"] + k8sVersion: ["1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x", "1.30.x", "1.31.x"] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up Python 3.10 diff --git a/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml index 0b113a96cb..45730c8a7d 100644 --- a/.github/workflows/presubmit.yaml +++ b/.github/workflows/presubmit.yaml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - k8sVersion: ["1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x", "1.30.x"] + k8sVersion: ["1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x", "1.30.x", "1.31.x"] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: ./.github/actions/install-deps @@ -25,7 +25,7 @@ jobs: - run: K8S_VERSION=${{ matrix.k8sVersion }} make presubmit - name: Send coverage # should only send converage once https://docs.coveralls.io/parallel-builds - if: matrix.k8sVersion == '1.30.x' + if: matrix.k8sVersion == '1.31.x' env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: goveralls -coverprofile=coverage.out -service=github diff --git a/hack/toolchain.sh b/hack/toolchain.sh index b6e44eb6bb..d1bf76ed2d 100755 --- a/hack/toolchain.sh +++ b/hack/toolchain.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -K8S_VERSION="${K8S_VERSION:="1.30.x"}" +K8S_VERSION="${K8S_VERSION:="1.31.x"}" KUBEBUILDER_ASSETS="/usr/local/kubebuilder/bin" main() { diff --git a/pkg/test/environment.go b/pkg/test/environment.go index d4573aac20..0d66529a71 100644 --- a/pkg/test/environment.go +++ b/pkg/test/environment.go @@ -86,7 +86,7 @@ func NewEnvironment(options ...option.Function[EnvironmentOptions]) *Environment opts := option.Resolve(options...) ctx, cancel := context.WithCancel(context.Background()) - version := version.MustParseSemantic(strings.Replace(env.WithDefaultString("K8S_VERSION", "1.30.x"), ".x", ".0", -1)) + version := version.MustParseSemantic(strings.Replace(env.WithDefaultString("K8S_VERSION", "1.31.x"), ".x", ".0", -1)) environment := envtest.Environment{Scheme: scheme.Scheme, CRDs: opts.crds} if version.Minor() >= 21 { // PodAffinityNamespaceSelector is used for label selectors in pod affinities. If the feature-gate is turned off,