Skip to content

Commit

Permalink
add resync time
Browse files Browse the repository at this point in the history
  • Loading branch information
tremes committed Jun 12, 2023
1 parent 4355e17 commit 0410247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/configobserver/insighgtsdatagather_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package configobserver
import (
"context"
"sync"
"time"

"github.com/openshift/api/config/v1alpha1"
configCliv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
Expand Down Expand Up @@ -49,6 +50,7 @@ func NewInsightsDataGatherObserver(kubeConfig *rest.Config,

ctrl := factory.New().WithInformers(inf).
WithSync(c.sync).
ResyncEvery(2*time.Minute).
ToController("InsightsDataGatherObserver", eventRecorder)
c.Controller = ctrl
return c, nil
Expand Down

0 comments on commit 0410247

Please sign in to comment.