File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ import (
4242 "sigs.k8s.io/controller-runtime/pkg/client/apiutil"
4343)
4444
45- var defaultSyncPeriod = 10 * time .Hour
45+ var (
46+ defaultSyncPeriod = 10 * time .Hour
47+ )
4648
4749// InformerGetOptions defines the behavior of how informers are retrieved.
4850type InformerGetOptions internal.GetOptions
@@ -172,7 +174,7 @@ type Options struct {
172174 // instead of `reconcile.Result{}`.
173175 //
174176 // SyncPeriod will trigger update events with the old object being equal to the new
175- // object. Excep the cache was out of sync.
177+ // object, except when the cache was out of sync.
176178 // If you filter update events like this:
177179 // Controller.Watch(
178180 // &source.Kind{Type: v1.MyCustomKind},
@@ -181,7 +183,6 @@ type Options struct {
181183 // predicate.LabelChangedPredicate{}))
182184 // then the SyncPeriod will not trigger a Reconcile call, because the update event
183185 // will be ignored by the predicate.
184-
185186 SyncPeriod * time.Duration
186187
187188 // ReaderFailOnMissingInformer configures the cache to return a ErrResourceNotCached error when a user
You can’t perform that action at this time.
0 commit comments