CCO-834: Upgrade to Kubernetes 1.36#1066
Conversation
Update Kubernetes dependencies to v0.36.0 and controller-runtime to v0.24.0. Bump openshift/api for compatibility with APIs removed in Kubernetes 1.36. Regenerate codegen and apply a temporary library-go vendor patch for HasSyncedChecker until openshift/library-go#2171 merges. Assisted-by: Claude
|
@ericahinkleRH: This pull request references CCO-834 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe pull request refreshes Go dependencies, removes generated no-op defaulting code, and updates fake shared informers to expose synchronization through a closed channel and ChangesDependency and informer updates
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1066 +/- ##
==========================================
+ Coverage 47.03% 47.30% +0.26%
==========================================
Files 97 97
Lines 12583 12614 +31
==========================================
+ Hits 5919 5967 +48
+ Misses 6008 5987 -21
- Partials 656 660 +4 🚀 New features to boost your workflow:
|
Track the temporary vendor patch for HasSyncedChecker() in deps.diff as required by the verify-deps check.
|
/approve |
|
/retest-required |
|
/lgtm |
|
@ericahinkleRH: you cannot LGTM your own PR. DetailsIn response to this:
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. |
|
The verify-deps test is still failing even with deps.diff added. The error shows the vendor patch isn't being recognized correctly. Any suggestions on how to fix the deps.diff format? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlom, ericahinkleRH, nader-ziada The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I think we can get rid of deps.diff entirely and go with the clean version of the library-go test helpers in the vendor folder |
Per review feedback from dlom, the library-go vendor patch is not needed. Using the clean version from go mod vendor instead.
|
New changes are detected. LGTM label has been removed. |
|
Thanks @dlom! Removed the deps.diff and vendor patch. Using the clean version from |
|
/override ci/prow/security |
|
@dlom: Overrode contexts on behalf of dlom: ci/prow/security DetailsIn response to this:
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. |
|
@dlom The verify-deps test is still failing after removing deps.diff. It's showing differences in the library-go test_helpers.go file, but running |
|
please rerun |
|
/override ci/prow/security |
|
@dlom: Overrode contexts on behalf of dlom: ci/prow/security DetailsIn response to this:
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 see... let's wait for openshift/library-go#2171 to merge first before moving forwards with this PR |
|
top level PR we're waiting on is openshift/api#2813 |
|
@ericahinkleRH: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
sounds good! |
Summary
github.com/openshift/apito a version compatible with APIs removed in Kubernetes 1.36hack/update-codegen.sh); remove emptyzz_generated.defaults.go(no longer emitted by k8s 1.36 code-generator)Dependency changes
k8s.io/*sigs.k8s.io/controller-runtimegithub.com/openshift/apiNo application logic changes.
Test plan
make buildmake testmake vetverify-vendored-crdshack/verify-codegen.shmake verify