Skip to content

Add categories to source-controller CRDs#2087

Merged
matheuscscp merged 1 commit into
fluxcd:mainfrom
josesiqueira:add-crd-categories
Jun 23, 2026
Merged

Add categories to source-controller CRDs#2087
matheuscscp merged 1 commit into
fluxcd:mainfrom
josesiqueira:add-crd-categories

Conversation

@josesiqueira

Copy link
Copy Markdown
Contributor

This adds the standard Flux resource categories to every CRD in this
repository so users can list Flux resources with kubectl, for example:

kubectl get fluxcd            # all Flux resources
kubectl get fluxcd-sources    # all Flux source resources
kubectl get all               # now includes Flux resources

Each CRD gets exactly three categories:

all
fluxcd
fluxcd-sources

The +kubebuilder:resource markers were removed from the skipped older
API versions, since they interfere with CRD generation, and the CRDs
were regenerated with make manifests.

Part of fluxcd/flux2#5947

Add the standard Flux resource categories to every CRD so users can
list Flux resources with kubectl using category selectors:

  all              every resource in the cluster
  fluxcd           every Flux resource
  fluxcd-sources   every Flux source resource

Remove the +kubebuilder:resource markers from the skipped older API
versions, since they interfere with CRD generation, and regenerate
the CRDs.

Signed-off-by: José Siqueira <jose.siqueira.cerqueira@gmail.com>
Assisted-by: Claude/claude-opus-4-8

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@matheuscscp matheuscscp merged commit 8721122 into fluxcd:main Jun 23, 2026
6 checks passed
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.

2 participants