Skip to content

🐛 fix(api): move package cmd to internal#5400

Merged
camilamacedo86 merged 1 commit intokubernetes-sigs:masterfrom
vitorfloriano:fix-move-cmd-to-internal
Jan 27, 2026
Merged

🐛 fix(api): move package cmd to internal#5400
camilamacedo86 merged 1 commit intokubernetes-sigs:masterfrom
vitorfloriano:fix-move-cmd-to-internal

Conversation

@vitorfloriano
Copy link
Contributor

This PR moves the cmd package to internal.

The cmd package is not documented and should not be used by external users.

See: https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4@v4.11.0/cmd

Also, we should note that the cmd package has only one function that is only imported by the main function in main.go in root.

We decided not to simply move the logic in Run() to main.go to give us more flexibility when writing tests in the future.

The cmd package is now for internal usage only, cleaning up the Kubebuilder library API. The Run() function in package cmd is not well-documented and is not meant to be used by external users.
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vitorfloriano
Once this PR has been reviewed and has the lgtm label, please assign varshaprasad96 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 26, 2026
@vitorfloriano
Copy link
Contributor Author

/retest

@camilamacedo86
Copy link
Member

It seems fine.
I do not think will broke nobody that is using Kubebuilder as a lib

@camilamacedo86 camilamacedo86 merged commit 1933691 into kubernetes-sigs:master Jan 27, 2026
15 of 17 checks passed
@vitorfloriano vitorfloriano deleted the fix-move-cmd-to-internal branch January 28, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants