File tree Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 6969 - name : CATTLE_DEV_MODE
7070 value : " true"
7171 {{- end }}
72- {{- if $.Values.controller.reconciler.workers.gitrepo }}
73- - name : GITREPO_RECONCILER_WORKERS
74- value : {{ quote $.Values.controller.reconciler.workers.gitrepo }}
75- {{- end }}
7672 {{- if $.Values.controller.reconciler.workers.bundle }}
7773 - name : BUNDLE_RECONCILER_WORKERS
7874 value : {{ quote $.Values.controller.reconciler.workers.bundle }}
Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ controller:
9999 reconciler :
100100 # The number of workers that are allowed to each type of reconciler
101101 workers :
102- gitrepo : " 1 "
103- bundle : " 1 "
104- bundledeployment : " 1 "
102+ gitrepo : " 50 "
103+ bundle : " 50 "
104+ bundledeployment : " 50 "
105105
106106# Extra environment variables passed to the fleet pods.
107107# extraEnv:
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
2121 "k8s.io/client-go/util/retry"
2222 ctrl "sigs.k8s.io/controller-runtime"
2323 "sigs.k8s.io/controller-runtime/pkg/client"
24+ "sigs.k8s.io/controller-runtime/pkg/controller"
2425 "sigs.k8s.io/controller-runtime/pkg/event"
2526 "sigs.k8s.io/controller-runtime/pkg/log"
2627 "sigs.k8s.io/controller-runtime/pkg/predicate"
@@ -78,6 +79,7 @@ func (r *BundleDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error {
7879 },
7980 },
8081 )).
82+ WithOptions (controller.Options {MaxConcurrentReconciles : 50 }).
8183 Complete (r )
8284}
8385
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
2929 ctrl "sigs.k8s.io/controller-runtime"
3030 "sigs.k8s.io/controller-runtime/pkg/builder"
3131 "sigs.k8s.io/controller-runtime/pkg/client"
32+ "sigs.k8s.io/controller-runtime/pkg/controller"
3233 "sigs.k8s.io/controller-runtime/pkg/event"
3334 "sigs.k8s.io/controller-runtime/pkg/handler"
3435 "sigs.k8s.io/controller-runtime/pkg/log"
@@ -100,6 +101,7 @@ func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error {
100101 }),
101102 ).
102103 WithEventFilter (sharding .FilterByShardID (r .ShardID )).
104+ WithOptions (controller.Options {MaxConcurrentReconciles : 50 }).
103105 Complete (r )
104106}
105107
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import (
2727 ctrl "sigs.k8s.io/controller-runtime"
2828 "sigs.k8s.io/controller-runtime/pkg/builder"
2929 "sigs.k8s.io/controller-runtime/pkg/client"
30+ "sigs.k8s.io/controller-runtime/pkg/controller"
3031 "sigs.k8s.io/controller-runtime/pkg/event"
3132 "sigs.k8s.io/controller-runtime/pkg/handler"
3233 "sigs.k8s.io/controller-runtime/pkg/log"
@@ -67,6 +68,7 @@ func (r *ClusterGroupReconciler) SetupWithManager(mgr ctrl.Manager) error {
6768 handler .EnqueueRequestsFromMapFunc (r .mapClusterToClusterGroup ),
6869 ).
6970 WithEventFilter (sharding .FilterByShardID (r .ShardID )).
71+ WithOptions (controller.Options {MaxConcurrentReconciles : 50 }).
7072 Complete (r )
7173}
7274
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515 "k8s.io/apimachinery/pkg/runtime"
1616 ctrl "sigs.k8s.io/controller-runtime"
1717 "sigs.k8s.io/controller-runtime/pkg/client"
18+ "sigs.k8s.io/controller-runtime/pkg/controller"
1819 "sigs.k8s.io/controller-runtime/pkg/log"
1920 "sigs.k8s.io/controller-runtime/pkg/predicate"
2021)
@@ -42,6 +43,7 @@ func (r *ImageScanReconciler) SetupWithManager(mgr ctrl.Manager) error {
4243 predicate.LabelChangedPredicate {},
4344 ),
4445 )).
46+ WithOptions (controller.Options {MaxConcurrentReconciles : 50 }).
4547 Complete (r )
4648}
4749
You can’t perform that action at this time.
0 commit comments