diff --git a/.github/workflows/test-one.yml b/.github/workflows/test-one.yml index e212d6f..ba84cc6 100644 --- a/.github/workflows/test-one.yml +++ b/.github/workflows/test-one.yml @@ -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/kind-action@v1.5.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37ba3de..0aa5414 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 @@ -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 @@ -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" diff --git a/README.md b/README.md index 3d749ac..656adcf 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cli-runtime-printers/go.mod b/cli-runtime-printers/go.mod index 9bb3cfa..90bda0a 100644 --- a/cli-runtime-printers/go.mod +++ b/cli-runtime-printers/go.mod @@ -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 diff --git a/cli-runtime-resources-from-cluster/go.mod b/cli-runtime-resources-from-cluster/go.mod index 5a84077..5a15e87 100644 --- a/cli-runtime-resources-from-cluster/go.mod +++ b/cli-runtime-resources-from-cluster/go.mod @@ -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 diff --git a/cli-runtime-resources-from-file/go.mod b/cli-runtime-resources-from-file/go.mod index 2823b9d..372230c 100644 --- a/cli-runtime-resources-from-file/go.mod +++ b/cli-runtime-resources-from-file/go.mod @@ -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 diff --git a/convert-unstructured-typed/go.mod b/convert-unstructured-typed/go.mod index 86699de..45be1f3 100644 --- a/convert-unstructured-typed/go.mod +++ b/convert-unstructured-typed/go.mod @@ -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 diff --git a/crud-dynamic-simple/go.mod b/crud-dynamic-simple/go.mod index ccbd640..ee5e06c 100644 --- a/crud-dynamic-simple/go.mod +++ b/crud-dynamic-simple/go.mod @@ -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 diff --git a/crud-typed-simple/go.mod b/crud-typed-simple/go.mod index 92a895b..04c2d00 100644 --- a/crud-typed-simple/go.mod +++ b/crud-typed-simple/go.mod @@ -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 diff --git a/error-handling/go.mod b/error-handling/go.mod index 41dd891..ec0ee96 100644 --- a/error-handling/go.mod +++ b/error-handling/go.mod @@ -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 diff --git a/field-selectors/go.mod b/field-selectors/go.mod index e979752..c0103cb 100644 --- a/field-selectors/go.mod +++ b/field-selectors/go.mod @@ -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 diff --git a/go.work b/go.work index 9bf1f31..c4d74bb 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.22.3 +go 1.22.10 use ( ./cli-runtime-flags diff --git a/informer-dynamic-simple/go.mod b/informer-dynamic-simple/go.mod index d5bb5e7..b3b291e 100644 --- a/informer-dynamic-simple/go.mod +++ b/informer-dynamic-simple/go.mod @@ -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 diff --git a/informer-typed-simple/go.mod b/informer-typed-simple/go.mod index 3ee276d..e2433c6 100644 --- a/informer-typed-simple/go.mod +++ b/informer-typed-simple/go.mod @@ -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 diff --git a/kubeconfig-default-context/go.mod b/kubeconfig-default-context/go.mod index 662c92f..84d0ebe 100644 --- a/kubeconfig-default-context/go.mod +++ b/kubeconfig-default-context/go.mod @@ -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 diff --git a/kubeconfig-from-yaml/go.mod b/kubeconfig-from-yaml/go.mod index a786926..0cd9fc4 100644 --- a/kubeconfig-from-yaml/go.mod +++ b/kubeconfig-from-yaml/go.mod @@ -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 diff --git a/kubeconfig-list-contexts/go.mod b/kubeconfig-list-contexts/go.mod index 3ea68d6..f8af7db 100644 --- a/kubeconfig-list-contexts/go.mod +++ b/kubeconfig-list-contexts/go.mod @@ -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 diff --git a/kubeconfig-overridden-context/go.mod b/kubeconfig-overridden-context/go.mod index 7f9ea46..3cd81b5 100644 --- a/kubeconfig-overridden-context/go.mod +++ b/kubeconfig-overridden-context/go.mod @@ -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 diff --git a/label-selectors/go.mod b/label-selectors/go.mod index d9e2a6e..773e30b 100644 --- a/label-selectors/go.mod +++ b/label-selectors/go.mod @@ -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 diff --git a/list-typed-simple/go.mod b/list-typed-simple/go.mod index 878e8a5..ea61814 100644 --- a/list-typed-simple/go.mod +++ b/list-typed-simple/go.mod @@ -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 diff --git a/patch-add-ephemeral-container/go.mod b/patch-add-ephemeral-container/go.mod index db5dba6..0733bd8 100644 --- a/patch-add-ephemeral-container/go.mod +++ b/patch-add-ephemeral-container/go.mod @@ -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 diff --git a/retry-on-conflict/go.mod b/retry-on-conflict/go.mod index 2db30ef..bd8ed51 100644 --- a/retry-on-conflict/go.mod +++ b/retry-on-conflict/go.mod @@ -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 diff --git a/serialize-typed-json/go.mod b/serialize-typed-json/go.mod index 5630e24..f818d3d 100644 --- a/serialize-typed-json/go.mod +++ b/serialize-typed-json/go.mod @@ -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 diff --git a/serialize-typed-yaml/go.mod b/serialize-typed-yaml/go.mod index 9b2bb3d..16ab4b1 100644 --- a/serialize-typed-yaml/go.mod +++ b/serialize-typed-yaml/go.mod @@ -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 diff --git a/serialize-unstructured-json/go.mod b/serialize-unstructured-json/go.mod index ac7bcaa..0ccd2eb 100644 --- a/serialize-unstructured-json/go.mod +++ b/serialize-unstructured-json/go.mod @@ -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 diff --git a/serialize-unstructured-yaml/go.mod b/serialize-unstructured-yaml/go.mod index 424b3d8..2dece2d 100644 --- a/serialize-unstructured-yaml/go.mod +++ b/serialize-unstructured-yaml/go.mod @@ -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 diff --git a/watch-typed-simple/go.mod b/watch-typed-simple/go.mod index 2b6960d..459efda 100644 --- a/watch-typed-simple/go.mod +++ b/watch-typed-simple/go.mod @@ -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 diff --git a/workqueue/go.mod b/workqueue/go.mod index 97f2b59..1ee02c0 100644 --- a/workqueue/go.mod +++ b/workqueue/go.mod @@ -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