Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit 8f1e30a

Browse files
authored
Test increasing number of parallel reconciles (#567)
1 parent 1c12c9f commit 8f1e30a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

controllers/replica_set_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
"github.com/mongodb/mongodb-kubernetes-operator/controllers/predicates"
1010
"sigs.k8s.io/controller-runtime/pkg/builder"
11+
"sigs.k8s.io/controller-runtime/pkg/controller"
1112
"sigs.k8s.io/controller-runtime/pkg/source"
1213

1314
"github.com/mongodb/mongodb-kubernetes-operator/pkg/kube/container"
@@ -82,6 +83,7 @@ func NewReconciler(mgr manager.Manager) *ReplicaSetReconciler {
8283
// SetupWithManager sets up the controller with the Manager and configures the necessary watches.
8384
func (r *ReplicaSetReconciler) SetupWithManager(mgr ctrl.Manager) error {
8485
return ctrl.NewControllerManagedBy(mgr).
86+
WithOptions(controller.Options{MaxConcurrentReconciles: 3}).
8587
For(&mdbv1.MongoDBCommunity{}, builder.WithPredicates(predicates.OnlyOnSpecChange())).
8688
Watches(&source.Kind{Type: &corev1.Secret{}}, r.secretWatcher).
8789
Complete(r)

docs/RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Changes
66
- stability improvements when changing version of MongoDB.
7+
- increased number of concurrent resources the operator can act on.
78

89
## Updated Image Tags
910

0 commit comments

Comments
 (0)