Skip to content

Commit ac3dc58

Browse files
authored
chore: Bump Golang to 1.26.0 with golangci-lint to 2.9.0 (#695)
* chore: Bump Golang to 1.26.0 * chore: Bump golang to 1.26 & golangci-lint for support latest version: 2.9.0 * Update Go version to 1.26.0 in tests
1 parent ec9cced commit ac3dc58

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

listener/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kyma-project/runtime-watcher/listener
22

3-
go 1.25.7
3+
go 1.26.0
44

55
retract v1.1.18 // reason: not a valid release
66

listener/pkg/v2/event/watcher_event.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func GenericEvent(watcherEvent *types.WatchEvent) *unstructured.Unstructured {
8989
return genericEvtObject
9090
}
9191

92-
func UnstructuredContent(watcherEvt *types.WatchEvent) map[string]interface{} {
93-
content := make(map[string]interface{}, contentMapCapacity)
92+
func UnstructuredContent(watcherEvt *types.WatchEvent) map[string]any {
93+
content := make(map[string]any, contentMapCapacity)
9494
content["watched"] = watcherEvt.Watched
9595
content["watched-gvk"] = watcherEvt.WatchedGvk
9696
content["runtime-id"] = watcherEvt.SkrMeta.RuntimeId

runtime-watcher/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kyma-project/runtime-watcher/skr
22

3-
go 1.25.7
3+
go 1.26.0
44

55
require (
66
github.com/go-logr/logr v1.4.3

runtime-watcher/pkg/admissionreview/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func (m Metadata) NamespacedName() string {
3030
type WatchedObject struct {
3131
Metadata `json:"metadata"`
3232

33-
Spec map[string]interface{} `json:"spec"`
34-
APIVersion string `json:"apiVersion"`
35-
Kind string `json:"kind"`
36-
Status map[string]interface{} `json:"status"`
33+
Spec map[string]any `json:"spec"`
34+
APIVersion string `json:"apiVersion"`
35+
Kind string `json:"kind"`
36+
Status map[string]any `json:"status"`
3737
}

runtime-watcher/tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kyma-project/runtime-watcher/tests
22

3-
go 1.25.7
3+
go 1.26.0
44

55
replace (
66
github.com/kyma-project/runtime-watcher/listener => ../../listener

versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
golangciLint: "2.4.0"
1+
golangciLint: "2.9.0"
22
envtest: "0.21"
33
envtest_k8s: "1.32.0"

0 commit comments

Comments
 (0)