@@ -32,6 +32,7 @@ import (
3232
3333 "github.com/fluxcd/pkg/runtime/acl"
3434 "github.com/fluxcd/pkg/runtime/client"
35+ helper "github.com/fluxcd/pkg/runtime/controller"
3536 "github.com/fluxcd/pkg/runtime/events"
3637 "github.com/fluxcd/pkg/runtime/leaderelection"
3738 "github.com/fluxcd/pkg/runtime/logger"
@@ -74,6 +75,7 @@ func main() {
7475 logOptions logger.Options
7576 aclOptions acl.Options
7677 leaderElectionOptions leaderelection.Options
78+ rateLimiterOptions helper.RateLimiterOptions
7779 defaultServiceAccount string
7880 )
7981
@@ -90,6 +92,7 @@ func main() {
9092 logOptions .BindFlags (flag .CommandLine )
9193 aclOptions .BindFlags (flag .CommandLine )
9294 leaderElectionOptions .BindFlags (flag .CommandLine )
95+ rateLimiterOptions .BindFlags (flag .CommandLine )
9396 kubeConfigOpts .BindFlags (flag .CommandLine )
9497 flag .Parse ()
9598
@@ -148,6 +151,7 @@ func main() {
148151 MaxConcurrentReconciles : concurrent ,
149152 DependencyRequeueInterval : requeueDependency ,
150153 HTTPRetry : httpRetry ,
154+ RateLimiter : helper .GetRateLimiter (rateLimiterOptions ),
151155 }); err != nil {
152156 setupLog .Error (err , "unable to create controller" , "controller" , v2 .HelmReleaseKind )
153157 os .Exit (1 )
0 commit comments