Commit Graph

11 Commits

Author SHA1 Message Date
Nic Cope 678177c524 Run golangci-lint run --fix
This commit is entirely generated by earthly +reviewable

Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-07-03 12:51:13 -07:00
Maximilian Blatt 3b73e8ea2d feat: Upgrade controller-runtime to v0.19.0
Adjust code to apply to breaking changes in controller-runtime. There
should be no breaking changes for programs using crossplane-runtime.

Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com>
2024-08-26 11:49:19 +02:00
Hasan Turken 11e9468944
Cleanup deprecated stuff that are no longer used
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-08-11 13:02:54 +03:00
Aditya Sharma cd68866501 Fix lints
Signed-off-by: Aditya Sharma <git@adi.run>
2022-07-21 22:01:32 -07:00
Bulat Shakirzyanov fa6b2ef1e2 bump up the limits
Signed-off-by: Bulat Shakirzyanov <83289+avalanche123@users.noreply.github.com>
2022-07-13 11:58:52 -04:00
Bulat Shakirzyanov b781506537 increase burst to rps * 3
Signed-off-by: Bulat Shakirzyanov <83289+avalanche123@users.noreply.github.com>
2022-07-12 10:03:41 -04:00
Nic Cope 70a386a588 Return, don't mutate, a rate limited *rest.Config
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-25 03:07:12 +00:00
Nic Cope 277dabb3df Support true global reconcile rate limiting
This PR tweaks how ratelimiters are applied to support _actual_ global reconcile
rate limiting - that is all reconcile triggers are rate limited, not just some.

See https://github.com/crossplane/crossplane/issues/2595 for details.

Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-24 21:29:00 +00:00
Nic Cope 6ae31519f1 Switch ratelimiter package to more generic names
I'd like to reuse these existing ratelimiters for crossplane, where the names
'Provider' and 'Managed' don't make as much sense.

Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-21 03:12:43 +00:00
hasheddan 598fa1fec9
Update managed reconciler comments with backoff
Updates comments in managed reconciler to indicate requeues are not tied
to short wait but instead are explicit and trigger the configured
backoff strategy.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-19 09:45:58 -06:00
hasheddan 471d47ba86
Add default provider and controller rate limiters
Adds default rate limiters to be used at both the provider and
controller level. The provider rate limiter is a configurable token
bucket and the controller limiter is a max of limiter that uses the
provider limiter and a per-item exponential backoff.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-16 09:15:45 -06:00