From 23b23d20f27d6124a6a45974d895eda9ee4b4784 Mon Sep 17 00:00:00 2001 From: Michael Vasilenko Date: Sat, 28 Dec 2024 14:13:44 +0000 Subject: [PATCH 1/5] add dependabot config (#2) --- .github/dependabot.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..7d99b49 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,19 @@ +version: 2 +updates: + - package-ecosystem: gomod + directory: / + groups: + non-breaking-changes-security-updates: + update-types: [minor, patch] + applies-to: security-updates + dependency-type: production + patterns: ["*"] + non-breaking-changes-version-updates: + update-types: [minor, patch] + applies-to: version-updates + dependency-type: production + patterns: ["*"] + schedule: + interval: daily + time: "06:00" + timezone: "Etc/UTC" From baf5bb781314b183fbe7629d4f22461efb45c824 Mon Sep 17 00:00:00 2001 From: Michael Vasilenko Date: Mon, 30 Dec 2024 12:04:36 +0000 Subject: [PATCH 2/5] multiple dirs for dependabot (#3) --- .github/dependabot.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 7d99b49..4444d34 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,7 +1,8 @@ version: 2 updates: - package-ecosystem: gomod - directory: / + directories: + - '**/*' groups: non-breaking-changes-security-updates: update-types: [minor, patch] From 91aa0602daca4f22d23db8a070a81521e105cdac Mon Sep 17 00:00:00 2001 From: Michael Vasilenko Date: Thu, 2 Jan 2025 18:15:23 +0000 Subject: [PATCH 3/5] CI: use go 1.22.10 (#5) * use go 1.22.10 * update go work to use go 1.22.10 --- .github/workflows/test-one.yml | 2 +- README.md | 2 +- cli-runtime-printers/go.mod | 2 +- cli-runtime-resources-from-cluster/go.mod | 2 +- cli-runtime-resources-from-file/go.mod | 2 +- convert-unstructured-typed/go.mod | 2 +- crud-dynamic-simple/go.mod | 2 +- crud-typed-simple/go.mod | 2 +- error-handling/go.mod | 2 +- field-selectors/go.mod | 2 +- go.work | 2 +- informer-dynamic-simple/go.mod | 2 +- informer-typed-simple/go.mod | 2 +- kubeconfig-default-context/go.mod | 2 +- kubeconfig-from-yaml/go.mod | 2 +- kubeconfig-list-contexts/go.mod | 2 +- kubeconfig-overridden-context/go.mod | 2 +- label-selectors/go.mod | 2 +- list-typed-simple/go.mod | 2 +- patch-add-ephemeral-container/go.mod | 2 +- retry-on-conflict/go.mod | 2 +- serialize-typed-json/go.mod | 2 +- serialize-typed-yaml/go.mod | 2 +- serialize-unstructured-json/go.mod | 2 +- serialize-unstructured-yaml/go.mod | 2 +- watch-typed-simple/go.mod | 2 +- workqueue/go.mod | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) 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/README.md b/README.md index 3d749ac..8d3737e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ 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` +- `go 1.22.10` - `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`) 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 From 6d5b96fd5b834316dfabc845a0c455a28ee4e321 Mon Sep 17 00:00:00 2001 From: Michael Vasilenko Date: Fri, 3 Jan 2025 08:58:02 +0000 Subject: [PATCH 4/5] add x.30/x.31, remove x.27 (#6) update k8s and go-client versions --- .github/workflows/test.yml | 62 +++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) 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" From 9072fde846a3964278868723f63f718267c0ac61 Mon Sep 17 00:00:00 2001 From: Michael Vasilenko Date: Fri, 3 Jan 2025 10:45:03 +0000 Subject: [PATCH 5/5] update docs, remove dependabot (#7) --- .github/dependabot.yaml | 20 -------------------- README.md | 4 ++-- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 4444d34..0000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: 2 -updates: - - package-ecosystem: gomod - directories: - - '**/*' - groups: - non-breaking-changes-security-updates: - update-types: [minor, patch] - applies-to: security-updates - dependency-type: production - patterns: ["*"] - non-breaking-changes-version-updates: - update-types: [minor, patch] - applies-to: version-updates - dependency-type: production - patterns: ["*"] - schedule: - interval: daily - time: "06:00" - timezone: "Etc/UTC" diff --git a/README.md b/README.md index 8d3737e..656adcf 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ 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.10` -- `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`) +- `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