Skip to content

Add categories to image-reflector CRDs#903

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

Add categories to image-reflector CRDs#903
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-images   # all resources in this category
kubectl get all             # now includes Flux resources

Each CRD gets exactly three categories:

all
fluxcd
fluxcd-images

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 the ImagePolicy and
ImageRepository CRDs so users can list Flux resources with kubectl
using category selectors:

  all            every resource in the cluster
  fluxcd         every Flux resource
  fluxcd-images  every Flux image resource

Remove the +kubebuilder:resource markers from the 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 debe2aa into fluxcd:main Jun 23, 2026
6 checks passed
@matheuscscp matheuscscp added the backport:release/v1.2.x To be backported to release/v1.2.x label Jun 26, 2026
@fluxcdbot

Copy link
Copy Markdown
Member

Successfully created backport PR for release/v1.2.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:release/v1.2.x To be backported to release/v1.2.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants