make manager syncperiod configurable
@@ -58,6 +58,7 @@ func main() {
profilerAddress string
awsClusterConcurrency int
awsMachineConcurrency int
+ syncPeriod time.Duration
)
flag.StringVar(
@@ -100,6 +101,12 @@ func main() {
"Number of AWSMachines to process simultaneously",
)
+ flag.DurationVar(&syncPeriod,
+ "sync-period",
+ 10*time.Minute,
+ "The minimum interval at which watched resources are reconciled (e.g. 15m)",
+ )
+
flag.Parse()
if watchNamespace != "" {
@@ -113,8 +120,6 @@ func main() {
}()
}
- syncPeriod := 10 * time.Minute
-
ctrl.SetLogger(klogr.New())
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
