Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ func main() {
"The address for serving pprof profiling endpoints (requires --enable-pprof).",
)

maxConcurrentReconciles := flag.Int(
"max-concurrent-reconciles",
1,
"Maximum number of concurrent reconciles per controller instance.",
)
Comment thread
RadekManak marked this conversation as resolved.

// Sets up feature gates (version from build time, default 4 for unknown)
// Default should be changed to 5 once we branch for 5
majorVersion := version.Version.Major
Expand Down Expand Up @@ -216,7 +222,9 @@ func main() {
RegionCache: describeRegionsCache,
})

if err := machine.AddWithActuator(mgr, machineActuator, defaultMutableGate); err != nil {
if err := machine.AddWithActuatorOpts(mgr, machineActuator, controller.Options{
MaxConcurrentReconciles: *maxConcurrentReconciles,
}, defaultMutableGate); err != nil {
klog.Fatalf("Error adding actuator: %v", err)
}

Expand Down