Skip to content

Commit f515d1e

Browse files
committed
Change NewKindWithFixedCache to NewKindWithCache
1 parent befff0b commit f515d1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/source/source.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ type Source interface {
5555
Start(handler.EventHandler, workqueue.RateLimitingInterface, ...predicate.Predicate) error
5656
}
5757

58-
// NewKindWithFixedCache creates a Source without InjectCache, so that it is assured that the given cache is used
58+
// NewKindWithCache creates a Source without InjectCache, so that it is assured that the given cache is used
5959
// and not overwritten. It can be used to watch objects in a different cluster by passing the cache
6060
// from that other cluster
61-
func NewKindWithFixedCache(object runtime.Object, cache cache.Cache) Source {
62-
return &kindWithFixedCache{kind: Kind{Type: object, cache: cache}}
61+
func NewKindWithCache(object runtime.Object, cache cache.Cache) Source {
62+
return &kindWithCache{kind: Kind{Type: object, cache: cache}}
6363
}
6464

65-
type kindWithFixedCache struct {
65+
type kindWithCache struct {
6666
kind Kind
6767
}
6868

69-
func (ks *kindWithFixedCache) Start(handler handler.EventHandler, queue workqueue.RateLimitingInterface,
69+
func (ks *kindWithCache) Start(handler handler.EventHandler, queue workqueue.RateLimitingInterface,
7070
prct ...predicate.Predicate) error {
7171
return ks.kind.Start(handler, queue, prct...)
7272
}

0 commit comments

Comments
 (0)