Skip to content

Commit

Permalink
Merge pull request #20 from mvasilenko/main
Browse files Browse the repository at this point in the history
Update client-go / k8s / Golang versions
  • Loading branch information
iximiuz authored Jan 3, 2025
2 parents 3c53a25 + 9072fde commit 610e4f2
Show file tree
Hide file tree
Showing 28 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.22.3"
go-version: "1.22.10"
- name: Create test Kubernetes cluster (using kind)
uses: helm/[email protected]
with:
Expand Down
62 changes: 31 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@ jobs:
outputs:
dirs: ${{ steps.make-list.outputs.dirs }}

client_go_0_27:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.27.13"
- "1.28.9"
- "1.29.4"
- "1.30.0"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.27.14"

client_go_0_28:
needs: prepare
strategy:
Expand All @@ -50,15 +31,15 @@ jobs:
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.27.13"
- "1.28.9"
- "1.29.4"
- "1.30.0"
- "1.29.12"
- "1.30.8"
- "1.31.4"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.28.10"
k8s_package_ver: "0.28.14"

client_go_0_29:
needs: prepare
Expand All @@ -69,15 +50,15 @@ jobs:
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.27.13"
- "1.28.9"
- "1.29.4"
- "1.30.0"
- "1.29.12"
- "1.30.8"
- "1.31.4"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.29.5"
k8s_package_ver: "0.29.12"

client_go_0_30:
needs: prepare
Expand All @@ -88,12 +69,31 @@ jobs:
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.27.13"
- "1.28.9"
- "1.29.4"
- "1.30.0"
- "1.29.12"
- "1.30.8"
- "1.31.4"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.30.1"
k8s_package_ver: "0.30.8"

client_go_0_31:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.28.9"
- "1.29.12"
- "1.30.8"
- "1.31.4"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.31.4"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ The intention is to test a (more or less) fresh version of Go and `k8s.io` packa

What is tested at the moment:

- `go 1.22.3`
- `k8s.io/client-go 0.27.14 0.28.10 0.29.5 0.30.1` (maintained release branches)
- `Kubernetes 1.27.13 1.28.9 1.29.4 1.30.0` (best-effort match with versions supported by `kind`)
- `go 1.22.10`
- `k8s.io/client-go 0.28.14 0.29.12 0.30.8 0.31.4` (maintained release branches)
- `Kubernetes 1.28.9 1.29.12 1.30.8 1.31.4` (best-effort match with versions supported by `kind`)

## Setup

Expand Down
2 changes: 1 addition & 1 deletion cli-runtime-printers/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/cli-runtime-printers

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion cli-runtime-resources-from-cluster/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/cli-runtime-resources-from-cluster

go 1.22.3
go 1.22.10

require (
github.com/spf13/cobra v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion cli-runtime-resources-from-file/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/cli-runtime-resources-from-file

go 1.22.3
go 1.22.10

require (
github.com/spf13/cobra v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion convert-unstructured-typed/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/convert-unstructured-typed

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion crud-dynamic-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/crud-dynamic-simple

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion crud-typed-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/crud-typed-simple

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion error-handling/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/error-handling

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion field-selectors/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/field-selectors

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.22.3
go 1.22.10

use (
./cli-runtime-flags
Expand Down
2 changes: 1 addition & 1 deletion informer-dynamic-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/informer-dynamic-simple

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion informer-typed-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/informer-typed-simple

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion kubeconfig-default-context/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/kubeconfig-default-context

go 1.22.3
go 1.22.10

require (
k8s.io/client-go v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion kubeconfig-from-yaml/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/kubeconfig-from-yaml

go 1.22.3
go 1.22.10

require (
k8s.io/client-go v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion kubeconfig-list-contexts/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/kubeconfig-list-contexts

go 1.22.3
go 1.22.10

require (
k8s.io/client-go v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion kubeconfig-overridden-context/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/kubeconfig-overriden-context

go 1.22.3
go 1.22.10

require (
k8s.io/client-go v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion label-selectors/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/label-selectors

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion list-typed-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/list-typed-simple

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion patch-add-ephemeral-container/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/patch-add-ephemeral-container

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion retry-on-conflict/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/retry-on-conflict

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion serialize-typed-json/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/serialize-typed-json

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion serialize-typed-yaml/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/serialize-typed-yaml

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion serialize-unstructured-json/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/serialize-unstructured-json

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion serialize-unstructured-yaml/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/serialize-unstructured-yaml

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion watch-typed-simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/watch-typed-simple

go 1.22.3
go 1.22.10

require (
k8s.io/api v0.30.1
Expand Down
2 changes: 1 addition & 1 deletion workqueue/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iximiuz/client-go-examples/workqueue

go 1.22.3
go 1.22.10

require (
k8s.io/apimachinery v0.30.1
Expand Down

0 comments on commit 610e4f2

Please sign in to comment.