Skip to content

Commit ba0ace5

Browse files
Set MaxConcurrentReconciles to 10
1 parent 7f97b15 commit ba0ace5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/controller/controlplane_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ import (
4848
"k8s.io/client-go/tools/record"
4949
ctrl "sigs.k8s.io/controller-runtime"
5050
"sigs.k8s.io/controller-runtime/pkg/client"
51+
"sigs.k8s.io/controller-runtime/pkg/controller"
5152
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
5253
"sigs.k8s.io/controller-runtime/pkg/log"
54+
"sigs.k8s.io/controller-runtime/pkg/reconcile"
5355

5456
corev1beta1 "github.com/openmcp-project/control-plane-operator/api/v1beta1"
5557
"github.com/openmcp-project/control-plane-operator/pkg/controlplane/components"
@@ -191,6 +193,9 @@ func (r *ControlPlaneReconciler) getReleaseChannels(ctx context.Context) corev1b
191193
func (r *ControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager) error {
192194
return ctrl.NewControllerManagedBy(mgr).
193195
For(&corev1beta1.ControlPlane{}).
196+
WithOptions(controller.TypedOptions[reconcile.Request]{
197+
MaxConcurrentReconciles: 10,
198+
}).
194199
Complete(r)
195200
}
196201

0 commit comments

Comments
 (0)