forked from crossplane/crossplane
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use exponential retries where possible
crossplane/crossplane-runtime#293 This commit adapts core Crossplane to use (mostly) the same pattern as our providers, which use both controller and globally scoped rate limiters to limit reconcile rate when in error or wait situations and fall back to a configurable poll interval when there is a need to speculatively poll (e.g. because we can't watch the thing we're interested in). This commit makes use of the above crossplane-runtime PR to use a new Options type to plumb settings down from main.go to each controller. The Options will be plumbed up to CLI flags in a future commit. One key difference between this implementation and the current managed resource reconciler is that we actually return errors we encounter, rather than swallowing them and returning Requeue: true. This may result in some duplicate logs when running in debug mode (due to our logger and crossplane-runtime's both logging) but it should result in the `controller_runtime_reconcile_errors_total` being a more accurate metric of the errors Crossplane has encountered. Signed-off-by: Nic Cope <negz@rk0n.org>
- Loading branch information
Showing
24 changed files
with
662 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.