Skip to content

Upgrade to kubebuilder.io v4#722

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/upgrade-kubebuilder-v4-11-0
Draft

Upgrade to kubebuilder.io v4#722
Copilot wants to merge 2 commits into
masterfrom
copilot/upgrade-kubebuilder-v4-11-0

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

Upgrades operator project layout from kubebuilder v2 to v4.

Changes

  • PROJECT file: Migrated layout from go.kubebuilder.io/v2 to go.kubebuilder.io/v4 with explicit resource definitions for both Broker and MeshSync CRDs, including CRD version (v1) and namespace scoping

  • Generated manifests:

    • CRDs now properly include kubebuilder validation annotations (min/max constraints on size fields)
    • RBAC roles updated to include meshsyncs resources that were previously omitted
  • Code: No changes required—existing main.go already uses v4 patterns (server.Options, webhook.NewServer)

Before

layout: go.kubebuilder.io/v2
resources:
- domain: meshery.io
  kind: MeshSync
  version: v1alpha1

After

layout:
- go.kubebuilder.io/v4
resources:
- api:
    crdVersion: v1
    namespaced: true
  controller: true
  domain: meshery.io
  kind: MeshSync
  version: v1alpha1

All existing functionality preserved. Backward compatible—no API or behavioral changes.

Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade to kubebuilder.io v4.11.0</issue_title>
<issue_description>


Contributor Guides and Resources

Comments on the Issue (you are @copilot in this section)

Custom agent used: Meshery Operator Code Contributor Agent
Expert-level Kubernetes operator engineering agent specialized in contributing to Meshery Operator's controllers, CRDs, and lifecycle management of MeshSync and Meshery Broker.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Updated PROJECT file from v2 to v4 layout
- Added explicit Broker resource definition to PROJECT file
- Regenerated CRDs with validation annotations
- Updated RBAC to include meshsyncs resources
- All tests passing

Signed-off-by: GitHub Copilot <copilot@github.com>

Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to kubebuilder.io v4.11.0 Upgrade to kubebuilder.io v4 Jan 27, 2026
Copilot AI requested a review from leecalcote January 27, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to kubebuilder.io v4.11.0

2 participants