Upgrade kubebuilder to v4.5.2 #1324
Merged
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.
Upgrade kubebuilder to v4.5.2
Goal
Update the project to use kubebuilder v4.5.2.
Doc
https://github.com/int128/kubebuilder-updates?tab=readme-ov-file#update-kubebuilder-from-v451-to-v452
Steps
Apply the patch to update the project from v4.5.1 to v4.5.2:
Check the conflicts.
If a file does not exist in the project, remove it.
For example, git status shows the following:
Then, remove the following files:
config/crd/bases/webapp.int128.github.io_guestbooks.yamlinternal/controller/guestbook_controller.gotest/e2e/e2e_suite_test.gotest/e2e/e2e_test.goResolve the conflicts as follows:
go mod tidyto update the file.Do not run
git cherry-pick --continue.Finally, run the following commands to update the project: