feat: add OpenRewrite module for migrations and recipe for 5.3.0#3236
Open
csviri wants to merge 9 commits intooperator-framework:mainfrom
Open
feat: add OpenRewrite module for migrations and recipe for 5.3.0#3236csviri wants to merge 9 commits intooperator-framework:mainfrom
csviri wants to merge 9 commits intooperator-framework:mainfrom
Conversation
Collaborator
csviri
commented
Mar 17, 2026
- OpenRewrite migration
- wip
- wip
- wip
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new migration module to the Java Operator SDK project, providing OpenRewrite recipes to automate migration from v5.2 to v5.3. The recipes handle dependency version upgrades, artifact renames, Metrics API method renames, and removal of deprecated method invocations.
Changes:
- New
migrationMaven module with OpenRewrite recipe definitions for v5.2→v5.3 migration (JUnit module rename, Metrics method renames, version upgrade,monitorSizeOfremoval) - Test class
V53MigrationTestvalidating the Maven artifact rename and Metrics method rename recipes - Documentation update adding OpenRewrite usage instructions to the v5.3 migration guide
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Adds the new migration module to the reactor build |
| migration/pom.xml | New module POM with OpenRewrite dependencies for recipe authoring and testing |
| migration/src/main/resources/META-INF/rewrite/v5-3-migration.yml | OpenRewrite recipe definitions for v5.3 migration |
| migration/src/test/java/.../V53MigrationTest.java | Tests for the JUnit module rename and Metrics method rename recipes |
| docs/content/en/docs/migration/v5-3-migration.md | Adds OpenRewrite automated migration instructions |
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+103
to
+104
|
|
||
| default void reconciliationFinished(Object resource, RetryInfo retryInfo, Map<String, Object> metadata) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.