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 (
42
42
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
43
43
)
44
44
45
- var defaultSyncPeriod = 10 * time .Hour
45
+ var (
46
+ defaultSyncPeriod = 10 * time .Hour
47
+ )
46
48
47
49
// InformerGetOptions defines the behavior of how informers are retrieved.
48
50
type InformerGetOptions internal.GetOptions
@@ -172,7 +174,7 @@ type Options struct {
172
174
// instead of `reconcile.Result{}`.
173
175
//
174
176
// 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.
176
178
// If you filter update events like this:
177
179
// Controller.Watch(
178
180
// &source.Kind{Type: v1.MyCustomKind},
@@ -181,7 +183,6 @@ type Options struct {
181
183
// predicate.LabelChangedPredicate{}))
182
184
// then the SyncPeriod will not trigger a Reconcile call, because the update event
183
185
// will be ignored by the predicate.
184
-
185
186
SyncPeriod * time.Duration
186
187
187
188
// ReaderFailOnMissingInformer configures the cache to return a ErrResourceNotCached error when a user
You can’t perform that action at this time.
0 commit comments