@@ -32,6 +32,7 @@ import (
32
32
33
33
"github.com/fluxcd/pkg/runtime/acl"
34
34
"github.com/fluxcd/pkg/runtime/client"
35
+ helper "github.com/fluxcd/pkg/runtime/controller"
35
36
"github.com/fluxcd/pkg/runtime/events"
36
37
"github.com/fluxcd/pkg/runtime/leaderelection"
37
38
"github.com/fluxcd/pkg/runtime/logger"
@@ -74,6 +75,7 @@ func main() {
74
75
logOptions logger.Options
75
76
aclOptions acl.Options
76
77
leaderElectionOptions leaderelection.Options
78
+ rateLimiterOptions helper.RateLimiterOptions
77
79
defaultServiceAccount string
78
80
)
79
81
@@ -90,6 +92,7 @@ func main() {
90
92
logOptions .BindFlags (flag .CommandLine )
91
93
aclOptions .BindFlags (flag .CommandLine )
92
94
leaderElectionOptions .BindFlags (flag .CommandLine )
95
+ rateLimiterOptions .BindFlags (flag .CommandLine )
93
96
kubeConfigOpts .BindFlags (flag .CommandLine )
94
97
flag .Parse ()
95
98
@@ -148,6 +151,7 @@ func main() {
148
151
MaxConcurrentReconciles : concurrent ,
149
152
DependencyRequeueInterval : requeueDependency ,
150
153
HTTPRetry : httpRetry ,
154
+ RateLimiter : helper .GetRateLimiter (rateLimiterOptions ),
151
155
}); err != nil {
152
156
setupLog .Error (err , "unable to create controller" , "controller" , v2 .HelmReleaseKind )
153
157
os .Exit (1 )
0 commit comments