Skip to content

Commit 47baad3

Browse files
fix(deps): update module sigs.k8s.io/controller-runtime to v0.23.0 (elastic#9054)
* fix(deps): update module sigs.k8s.io/controller-runtime to v0.23.0 * fix: failingClient matching k8s client.Client interface * make generate * go mod tidy hack/helm/release * linter ignore GetEventRecorderFor deprecation --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
1 parent 18e001c commit 47baad3

File tree

8 files changed

+18
-10
lines changed

8 files changed

+18
-10
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ linters:
113113
- staticcheck
114114
# added exclusion until ElasticsearchAutoscalingSpecAnnotationName is completely removed
115115
text: 'SA1019: .* is deprecated: the autoscaling annotation has been deprecated in favor of the ElasticsearchAutoscaler custom resource.'
116+
- linters:
117+
- staticcheck
118+
# added exclusion until migration to new events API (events.k8s.io/v1) is completed
119+
text: 'SA1019: .*GetEventRecorderFor is deprecated: this uses the old events API'
116120
- linters:
117121
- revive
118122
# revive naming rules are not that happy with our packages/var names in commont/utils packages

NOTICE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5242,11 +5242,11 @@ Contents of probable licence file $GOMODCACHE/k8s.io/utils@v0.0.0-20251002143259
52425242

52435243
--------------------------------------------------------------------------------
52445244
Module : sigs.k8s.io/controller-runtime
5245-
Version : v0.22.4
5246-
Time : 2025-11-03T14:00:07Z
5245+
Version : v0.23.0
5246+
Time : 2026-01-19T14:13:14Z
52475247
Licence : Apache-2.0
52485248

5249-
Contents of probable licence file $GOMODCACHE/sigs.k8s.io/controller-runtime@v0.22.4/LICENSE:
5249+
Contents of probable licence file $GOMODCACHE/sigs.k8s.io/controller-runtime@v0.23.0/LICENSE:
52505250

52515251
Apache License
52525252
Version 2.0, January 2004

docs/reference/third-party-dependencies/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This page lists the third-party dependencies used to build {{eck}} from the main
5757
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | v0.35.0 | Apache-2.0 |
5858
| [k8s.io/klog/v2](https://github.com/kubernetes/klog) | v2.130.1 | Apache-2.0 |
5959
| [k8s.io/utils](https://github.com/kubernetes/utils) | v0.0.0-20251002143259-bc988d571ff4 | Apache-2.0 |
60-
| [sigs.k8s.io/controller-runtime](https://sigs.k8s.io/controller-runtime) | v0.22.4 | Apache-2.0 |
60+
| [sigs.k8s.io/controller-runtime](https://sigs.k8s.io/controller-runtime) | v0.23.0 | Apache-2.0 |
6161
| [sigs.k8s.io/controller-tools](https://sigs.k8s.io/controller-tools) | v0.20.0 | Apache-2.0 |
6262

6363

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ require (
4646
k8s.io/client-go v0.35.0
4747
k8s.io/klog/v2 v2.130.1
4848
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
49-
sigs.k8s.io/controller-runtime v0.22.4
49+
sigs.k8s.io/controller-runtime v0.23.0
5050
sigs.k8s.io/controller-tools v0.20.0
5151
)
5252

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzk
406406
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
407407
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM=
408408
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw=
409-
sigs.k8s.io/controller-runtime v0.22.4 h1:GEjV7KV3TY8e+tJ2LCTxUTanW4z/FmNB7l327UfMq9A=
410-
sigs.k8s.io/controller-runtime v0.22.4/go.mod h1:+QX1XUpTXN4mLoblf4tqr5CQcyHPAki2HLXqQMY6vh8=
409+
sigs.k8s.io/controller-runtime v0.23.0 h1:Ubi7klJWiwEWqDY+odSVZiFA0aDSevOCXpa38yCSYu8=
410+
sigs.k8s.io/controller-runtime v0.23.0/go.mod h1:DBOIr9NsprUqCZ1ZhsuJ0wAnQSIxY/C6VjZbmLgw0j0=
411411
sigs.k8s.io/controller-tools v0.20.0 h1:VWZF71pwSQ2lZZCt7hFGJsOfDc5dVG28/IysjjMWXL8=
412412
sigs.k8s.io/controller-tools v0.20.0/go.mod h1:b4qPmjGU3iZwqn34alUU5tILhNa9+VXK+J3QV0fT/uU=
413413
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg=

hack/helm/release/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ require (
179179
k8s.io/kubectl v0.34.1 // indirect
180180
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
181181
oras.land/oras-go/v2 v2.6.0 // indirect
182-
sigs.k8s.io/controller-runtime v0.22.4 // indirect
182+
sigs.k8s.io/controller-runtime v0.23.0 // indirect
183183
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
184184
sigs.k8s.io/kustomize/api v0.20.1 // indirect
185185
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect

hack/helm/release/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzk
503503
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
504504
oras.land/oras-go/v2 v2.6.0 h1:X4ELRsiGkrbeox69+9tzTu492FMUu7zJQW6eJU+I2oc=
505505
oras.land/oras-go/v2 v2.6.0/go.mod h1:magiQDfG6H1O9APp+rOsvCPcW1GD2MM7vgnKY0Y+u1o=
506-
sigs.k8s.io/controller-runtime v0.22.4 h1:GEjV7KV3TY8e+tJ2LCTxUTanW4z/FmNB7l327UfMq9A=
507-
sigs.k8s.io/controller-runtime v0.22.4/go.mod h1:+QX1XUpTXN4mLoblf4tqr5CQcyHPAki2HLXqQMY6vh8=
506+
sigs.k8s.io/controller-runtime v0.23.0 h1:Ubi7klJWiwEWqDY+odSVZiFA0aDSevOCXpa38yCSYu8=
507+
sigs.k8s.io/controller-runtime v0.23.0/go.mod h1:DBOIr9NsprUqCZ1ZhsuJ0wAnQSIxY/C6VjZbmLgw0j0=
508508
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg=
509509
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg=
510510
sigs.k8s.io/kustomize/api v0.20.1 h1:iWP1Ydh3/lmldBnH/S5RXgT98vWYMaTUL1ADcr+Sv7I=

pkg/utils/k8s/fake.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ func (fc failingClient) Apply(_ context.Context, _ runtime.ApplyConfiguration, _
3737
return fc.err
3838
}
3939

40+
func (fc failingSubClient) Apply(_ context.Context, _ runtime.ApplyConfiguration, _ ...client.SubResourceApplyOption) error {
41+
return fc.err
42+
}
43+
4044
func (fc failingSubClient) Create(_ context.Context, _ client.Object, _ client.Object, _ ...client.SubResourceCreateOption) error {
4145
return fc.err
4246
}

0 commit comments

Comments
 (0)