Skip to content

Commit 6c51c0b

Browse files
alvaroalemankubermatic-bot
authored andcommitted
Configure a five minute resync period for upstream controllers (#459)
This is made to ensure that the status of MachineDeployments and MachineSets converges in less than 10 hours.
1 parent da179d6 commit 6c51c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/controller/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ func startControllerViaLeaderElection(runOptions controllerRunOptions) error {
382382
return
383383
}
384384

385-
mgr, err := manager.New(runOptions.cfg, manager.Options{})
385+
mgrSyncPeriod := 5 * time.Minute
386+
mgr, err := manager.New(runOptions.cfg, manager.Options{SyncPeriod: &mgrSyncPeriod})
386387
if err != nil {
387388
glog.Errorf("failed to start kubebuilder manager: %v", err)
388389
runOptions.parentCtxDone()

0 commit comments

Comments
 (0)