Skip to content

Conversation

@matheuscscp
Copy link
Member

@matheuscscp matheuscscp commented Oct 10, 2025

Part of: fluxcd/flux2#5584

xref: kubernetes-sigs/controller-runtime#3334

This PR introduces a wrapper for the controller-runtime reconciler interface and for the controller builder to enhance them with the ability of detecting requeue events inside a reconciliation. This is useful for downstream controllers to cancel ongoing long-running operations and let a new reconciliation start sooner.

This has been tested in an EKS cluster with this example usage in kustomize-controller:

fluxcd/kustomize-controller#1536

@matheuscscp matheuscscp requested a review from hiddeco as a code owner October 10, 2025 12:59
@matheuscscp matheuscscp added the area/runtime Controller runtime related issues and pull requests label Oct 10, 2025
@matheuscscp matheuscscp requested a review from a team as a code owner October 10, 2025 13:12
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

Let's use interrupt to be explicit to consumers what this context should be used for.

@matheuscscp matheuscscp force-pushed the add-queue branch 6 times, most recently from 4f69e98 to 0b339b5 Compare October 10, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/runtime Controller runtime related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants