Skip to content

Commit

Permalink
pkg/operator/clustermembercontroller: resync every minute
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
  • Loading branch information
hexfusion committed Sep 30, 2020
1 parent f832717 commit 2429c3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewClusterMemberController(
kubeInformers.InformersFor("").Core().V1().Nodes().Informer(),
networkInformer.Informer(),
operatorClient.Informer(),
).WithSync(c.sync).ToController("ClusterMemberController", eventRecorder.WithComponentSuffix("cluster-member-controller"))
).WithSync(c.sync).ResyncEvery(time.Minute).ToController("ClusterMemberController", eventRecorder.WithComponentSuffix("cluster-member-controller"))
}

func (c *ClusterMemberController) sync(ctx context.Context, syncCtx factory.SyncContext) error {
Expand Down

0 comments on commit 2429c3e

Please sign in to comment.