Closed tomasaschan closed 4 weeks ago
/assign justinsb
/assign atoato88
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: justinsb, tomasaschan
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What this PR does / why we need it: A common pattern in our operators is to use preflight checks to call out to some external system for more information (that can be written e.g. to the status of the
DeclarativeObject
) or to validate that some property of thespec
meets requirements to be able to expand the channel manifests. If the check fails, sometimes the right behavior is to requeue with backoff - but often it's not: e.g., if the spec is deemed invalid, there's no reason to requeue the resource. If spec changes we'll get a new event anyway, and until spec changes we won't be able to reconcile.There is already a
ErrorResult
type that can be used in a Preflight implementation to signal what we want the reconciliation function to return, but it's currently not being respected. This change addresses that.Which issue(s) this PR fixes:
Fixes #374