From 7eaebf032c2ac6b12333c68b9297154ae4da26cf Mon Sep 17 00:00:00 2001 From: Enxebre Date: Wed, 20 Mar 2019 12:56:22 +0100 Subject: [PATCH] Reduce resync period from 10 hours to 10 minutes --- cmd/manager/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 15f8f84f84..5aca34661f 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -16,6 +16,7 @@ package main import ( "flag" "fmt" + "time" "github.com/golang/glog" clusterapis "github.com/openshift/cluster-api/pkg/apis" @@ -49,7 +50,10 @@ func main() { } // Create a new Cmd to provide shared dependencies and start components - mgr, err := manager.New(cfg, manager.Options{}) + syncPeriod := 10 * time.Minute + mgr, err := manager.New(cfg, manager.Options{ + SyncPeriod: &syncPeriod, + }) if err != nil { glog.Fatalf("Error creating manager: %v", err) }