Skip to content

Commit

Permalink
Merge pull request #180 from enxebre/syncperiod
Browse files Browse the repository at this point in the history
Reduce resync period from 10 hours to 10 minutes
  • Loading branch information
openshift-merge-robot authored Mar 21, 2019
2 parents 44ca69a + 7eaebf0 commit 995e3e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package main
import (
"flag"
"fmt"
"time"

"github.com/golang/glog"
clusterapis "github.com/openshift/cluster-api/pkg/apis"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 995e3e2

Please sign in to comment.