Skip to content

Update sigs.k8s.io/controller-runtime from 0.22.4 to 0.23.1#1146

Open
GiuseppeTT wants to merge 2 commits intokubernetes-sigs:mainfrom
GiuseppeTT:fix-pr-1145
Open

Update sigs.k8s.io/controller-runtime from 0.22.4 to 0.23.1#1146
GiuseppeTT wants to merge 2 commits intokubernetes-sigs:mainfrom
GiuseppeTT:fix-pr-1145

Conversation

@GiuseppeTT
Copy link
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Update sigs.k8s.io/controller-runtime from 0.22.4 to 0.23.1 . The automatic bump #1145 did not work because version 0.23 introduced breaking changes. See https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.23.0

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

This PR uses the original commit a840be090c3668adeff13fab36c05d855dceb992 from #1145 and creates a second commit 8538d318fa71909e8dccd5d30afd07725444d91d to fix the breaking changes.

Does this PR introduce a user-facing change?


dependabot bot and others added 2 commits February 2, 2026 17:27
Bumps the kubernetes group with 1 update in the / directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime).


Updates `sigs.k8s.io/controller-runtime` from 0.22.4 to 0.23.1
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.22.4...v0.23.1)

Updates `sigs.k8s.io/structured-merge-diff/v6` from 6.3.1 to 6.3.2-0.20260122202528-d9cc6641c482
- [Release notes](https://github.com/kubernetes-sigs/structured-merge-diff/releases)
- [Changelog](https://github.com/kubernetes-sigs/structured-merge-diff/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/structured-merge-diff/commits)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-version: 0.23.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: sigs.k8s.io/structured-merge-diff/v6
  dependency-version: 6.3.2-0.20260122202528-d9cc6641c482
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: kubernetes
...

Signed-off-by: dependabot[bot] <support@github.com>
@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Feb 2, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: GiuseppeTT

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from kannon92 February 2, 2026 17:52
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2026
@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit 8538d31
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-jobset/deploys/6980e450df7c9a0008a1dcf9

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 2, 2026
@GiuseppeTT
Copy link
Contributor Author

/assign @andreyvelich since he has context.

@k8s-ci-robot
Copy link
Contributor

@GiuseppeTT: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-jobset-verify-main 8538d31 link true /test pull-jobset-verify-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@GiuseppeTT
Copy link
Contributor Author

GetEventRecorderFor is being deprecated. Let me see what I can do.

Failed test

golangci/golangci-lint info installed ./bin/golangci-lint
/home/prow/go/src/sigs.k8s.io/jobset/bin/golangci-lint run --timeout 15m0s
main.go:237:88: SA1019: mgr.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	jobSetController := controllers.NewJobSetReconciler(mgr.GetClient(), mgr.GetScheme(), mgr.GetEventRecorderFor("jobset"))
	                                                                                      ^
main.go:244:82: SA1019: mgr.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	podController := controllers.NewPodReconciler(mgr.GetClient(), mgr.GetScheme(), mgr.GetEventRecorderFor("pod"))
	                                                                                ^
test/integration/controller/suite_test.go:89:102: SA1019: k8sManager.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	jobSetReconciler := controllers.NewJobSetReconciler(k8sManager.GetClient(), k8sManager.GetScheme(), k8sManager.GetEventRecorderFor("jobset"))
	                                                                                                    ^
test/integration/controller/suite_test.go:98:96: SA1019: k8sManager.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	podReconciler := controllers.NewPodReconciler(k8sManager.GetClient(), k8sManager.GetScheme(), k8sManager.GetEventRecorderFor("pod"))
	                                                                                              ^
4 issues:
* staticcheck: 4
make: *** [Makefile:154: ci-lint] Error 1
+ EXIT_VALUE=2
+ set +o xtrace
Cleaning up after docker in docker.

@kannon92
Copy link
Contributor

kannon92 commented Feb 2, 2026

GetEventRecorderFor is being deprecated. Let me see what I can do.

Failed test

golangci/golangci-lint info installed ./bin/golangci-lint
/home/prow/go/src/sigs.k8s.io/jobset/bin/golangci-lint run --timeout 15m0s
main.go:237:88: SA1019: mgr.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	jobSetController := controllers.NewJobSetReconciler(mgr.GetClient(), mgr.GetScheme(), mgr.GetEventRecorderFor("jobset"))
	                                                                                      ^
main.go:244:82: SA1019: mgr.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	podController := controllers.NewPodReconciler(mgr.GetClient(), mgr.GetScheme(), mgr.GetEventRecorderFor("pod"))
	                                                                                ^
test/integration/controller/suite_test.go:89:102: SA1019: k8sManager.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	jobSetReconciler := controllers.NewJobSetReconciler(k8sManager.GetClient(), k8sManager.GetScheme(), k8sManager.GetEventRecorderFor("jobset"))
	                                                                                                    ^
test/integration/controller/suite_test.go:98:96: SA1019: k8sManager.GetEventRecorderFor is deprecated: this uses the old events API and will be removed in a future release. Please use GetEventRecorder instead. (staticcheck)
	podReconciler := controllers.NewPodReconciler(k8sManager.GetClient(), k8sManager.GetScheme(), k8sManager.GetEventRecorderFor("pod"))
	                                                                                              ^
4 issues:
* staticcheck: 4
make: *** [Makefile:154: ci-lint] Error 1
+ EXIT_VALUE=2
+ set +o xtrace
Cleaning up after docker in docker.

Could this PR solve this? #1119

@GiuseppeTT
Copy link
Contributor Author

Probably related to #1119

@GiuseppeTT
Copy link
Contributor Author

Could this PR solve this? #1119

I think so.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 18, 2026
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments