From b4faddfb6331db8cfa38ce6ca16ad87e284d1dd9 Mon Sep 17 00:00:00 2001 From: ekarlso Date: Mon, 16 Sep 2024 08:00:37 +0200 Subject: [PATCH] Add back ratelimiter from post debugging --- cmd/provider/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/provider/main.go b/cmd/provider/main.go index 760e8ae..17b2ddc 100644 --- a/cmd/provider/main.go +++ b/cmd/provider/main.go @@ -16,6 +16,7 @@ import ( xpcontroller "github.com/crossplane/crossplane-runtime/pkg/controller" "github.com/crossplane/crossplane-runtime/pkg/feature" "github.com/crossplane/crossplane-runtime/pkg/logging" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/resource" tjcontroller "github.com/crossplane/upjet/pkg/controller" "github.com/crossplane/upjet/pkg/terraform" @@ -83,8 +84,8 @@ func main() { kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add OVH APIs to scheme") o := tjcontroller.Options{ Options: xpcontroller.Options{ - Logger: log, - // GlobalRateLimiter: ratelimiter.NewGlobal(*maxReconcileRate), + Logger: log, + GlobalRateLimiter: ratelimiter.NewGlobal(*maxReconcileRate), PollInterval: *pollInterval, MaxConcurrentReconciles: *maxReconcileRate, Features: &feature.Flags{},