Skip to content

Commit 536b991

Browse files
committed
avoid unrelated code changes.
1 parent 08ae34f commit 536b991

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/cache/cache.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
4850
type 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

0 commit comments

Comments
 (0)