Skip to content

Commit 4798a50

Browse files
authored
feat: Add support for k8s v1.34.0, remove support for v1.29.5 (#505)
* Add support for k8s v1.34.0, remove support for v1.29.5 * upgrade changelog * update k8s.io/api,apimachinery, client-go, kubectl packages, removed replace * remove comments from changelog
1 parent 8fc05b4 commit 4798a50

File tree

6 files changed

+69
-84
lines changed

6 files changed

+69
-84
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
# Latest patch version can be found in https://kubernetes.io/releases/patch-releases/
2222
# Some versions might not be available yet in https://storage.googleapis.com/kubernetes-release/release/v1.X.Y/bin/linux/amd64/kubelet
23-
k8sVersion: ["v1.33.0", "v1.32.0", "v1.31.0", "v1.30.0", "v1.29.5"]
23+
k8sVersion: ["v1.34.0", "v1.33.0", "v1.32.0", "v1.31.0", "v1.30.0"]
2424
cri: [ containerd ]
2525
steps:
2626
- name: Checkout repository

.github/workflows/push_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
max-parallel: 5
146146
fail-fast: false
147147
matrix:
148-
k8sVersion: ["v1.33.0", "v1.32.0", "v1.31.0", "v1.30.0", "v1.29.5"]
148+
k8sVersion: ["v1.34.0", "v1.33.0", "v1.32.0", "v1.31.0", "v1.30.0"]
149149
cri: [ containerd ]
150150
steps:
151151
- uses: actions/checkout@v5

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
### enhancement
11+
- Add support for k8s v1.34.0, remove support for v1.29.5 @TmNguyen12 [#505](https://github.com/newrelic/nri-kube-events/pull/505)
12+
13+
### dependency
14+
- Upgrade k8s.io/api, apimachinery, client-go, kubectl to v0.34.1 @TmNguyen12 [#505](https://github.com/newrelic/nri-kube-events/pull/505)
15+
1016
## v2.15.2 - 2025-09-15
1117

1218
### ⛓️ Dependencies
File renamed without changes.

go.mod

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ require (
1010
github.com/sirupsen/logrus v1.9.3
1111
github.com/stretchr/testify v1.11.1
1212
gopkg.in/yaml.v3 v3.0.1
13-
k8s.io/api v0.33.3
14-
k8s.io/apimachinery v0.33.3
15-
k8s.io/client-go v0.33.3
16-
// Remove the replace directives at the bottom of this file
17-
// when upgrading to v0.28 or above
18-
k8s.io/kubectl v0.33.3
13+
k8s.io/api v0.34.1
14+
k8s.io/apimachinery v0.34.1
15+
k8s.io/client-go v0.34.1
16+
k8s.io/kubectl v0.34.1
1917
)
2018

2119
require (
@@ -24,21 +22,19 @@ require (
2422
github.com/blang/semver/v4 v4.0.0 // indirect
2523
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2624
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
27-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
25+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
2826
github.com/fatih/camelcase v1.0.0 // indirect
29-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
27+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
3028
github.com/go-errors/errors v1.4.2 // indirect
3129
github.com/go-logr/logr v1.4.2 // indirect
3230
github.com/go-openapi/jsonpointer v0.21.0 // indirect
3331
github.com/go-openapi/jsonreference v0.20.2 // indirect
3432
github.com/go-openapi/swag v0.23.0 // indirect
3533
github.com/gogo/protobuf v1.3.2 // indirect
3634
github.com/google/btree v1.1.3 // indirect
37-
github.com/google/gnostic-models v0.6.9 // indirect
35+
github.com/google/gnostic-models v0.7.0 // indirect
3836
github.com/google/go-cmp v0.7.0 // indirect
39-
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
4037
github.com/google/uuid v1.6.0 // indirect
41-
github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect
4238
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
4339
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4440
github.com/josharian/intern v1.0.0 // indirect
@@ -47,20 +43,21 @@ require (
4743
github.com/mailru/easyjson v0.7.7 // indirect
4844
github.com/moby/term v0.5.0 // indirect
4945
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
50-
github.com/modern-go/reflect2 v1.0.2 // indirect
46+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5147
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
5248
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5349
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
5450
github.com/pkg/errors v0.9.1 // indirect
5551
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5652
github.com/prometheus/common v0.66.1 // indirect
5753
github.com/prometheus/procfs v0.16.1 // indirect
58-
github.com/spf13/cobra v1.8.1 // indirect
59-
github.com/spf13/pflag v1.0.5 // indirect
54+
github.com/spf13/cobra v1.9.1 // indirect
55+
github.com/spf13/pflag v1.0.6 // indirect
6056
github.com/stretchr/objx v0.5.2 // indirect
6157
github.com/x448/float16 v0.8.4 // indirect
6258
github.com/xlab/treeprint v1.2.0 // indirect
6359
go.yaml.in/yaml/v2 v2.4.2 // indirect
60+
go.yaml.in/yaml/v3 v3.0.4 // indirect
6461
golang.org/x/net v0.43.0 // indirect
6562
golang.org/x/oauth2 v0.30.0 // indirect
6663
golang.org/x/sync v0.16.0 // indirect
@@ -71,24 +68,15 @@ require (
7168
google.golang.org/protobuf v1.36.8 // indirect
7269
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
7370
gopkg.in/inf.v0 v0.9.1 // indirect
74-
gopkg.in/yaml.v2 v2.4.0 // indirect
75-
k8s.io/cli-runtime v0.33.3 // indirect
76-
k8s.io/component-helpers v0.33.3 // indirect
71+
k8s.io/cli-runtime v0.34.1 // indirect
72+
k8s.io/component-helpers v0.34.1 // indirect
7773
k8s.io/klog/v2 v2.130.1 // indirect
78-
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
79-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
80-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
81-
sigs.k8s.io/kustomize/api v0.19.0 // indirect
82-
sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect
74+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
75+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
76+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
77+
sigs.k8s.io/kustomize/api v0.20.1 // indirect
78+
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
8379
sigs.k8s.io/randfill v1.0.0 // indirect
84-
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
85-
sigs.k8s.io/yaml v1.4.0 // indirect
86-
)
87-
88-
// These can be removed once kubectl v0.28 or above is released
89-
// We need a kubectl release that includes https://github.com/kubernetes/kubectl/commit/4bd3f1b03dacd034c35d9b7f188e0c5bacf91fad
90-
// The apimachinery replacement is for compatibility with the given kubectl version.
91-
replace (
92-
k8s.io/apimachinery => k8s.io/apimachinery v0.33.3
93-
k8s.io/kubectl => k8s.io/kubectl v0.33.3
80+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
81+
sigs.k8s.io/yaml v1.6.0 // indirect
9482
)

0 commit comments

Comments
 (0)