MGMT-24938: (IBIO) Upgrade operator-sdk from v1.30.0 to v1.42.3 (kubebuilder v3→v4 migration) - #851
MGMT-24938: (IBIO) Upgrade operator-sdk from v1.30.0 to v1.42.3 (kubebuilder v3→v4 migration)#851shay23bra wants to merge 1 commit into
Conversation
|
@shay23bra: This pull request references MGMT-24938 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 task 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (8)
WalkthroughThe project updates Operator SDK and Kubebuilder metadata versions, refreshes generated bundle annotations, and modernizes Kustomize configuration with resource-based inclusion, namespace assignment, and unified patch declarations. ChangesOperator tooling and bundle metadata
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shay23bra The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest-required |
|
@shay23bra: 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. |
Summary
Upgrade operator-sdk from v1.30.0 to v1.42.3 and migrate the project layout from
go.kubebuilder.io/v3togo.kubebuilder.io/v4.The older operator-sdk (v1.30.0) depends on operator-registry v1.28.0 which doesn't support
NetworkPolicyas a valid OLM bundle resource type —operator-sdk bundle validaterejects it. The new version (v1.42.3) depends on operator-registry v1.59.0 which supports it.Changes
PROJECT: layoutgo.kubebuilder.io/v3→go.kubebuilder.io/v4Makefile:OPERATOR_SDK_VERSIONv1.30.0→v1.42.3config/default/kustomization.yaml:bases:→resources:(deprecated kustomize syntax)config/crd/kustomization.yaml:patchesStrategicMerge:→patches:withpath:keyconfig/scorecard/kustomization.yaml:patchesJson6902:→patches:bundle/: regenerated metadata with updated builder/layout labelsNo Go code changes. No runtime behavior changes. No Dockerfile changes. Tooling-only upgrade.
Migration guide: https://book.kubebuilder.io/migration/v3vsv4
Related
Summary by CodeRabbit
Configuration
image-based-install-operatornamespace.Deployment