File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,18 +55,18 @@ type Source interface {
55
55
Start (handler.EventHandler , workqueue.RateLimitingInterface , ... predicate.Predicate ) error
56
56
}
57
57
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
59
59
// and not overwritten. It can be used to watch objects in a different cluster by passing the cache
60
60
// 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 }}
63
63
}
64
64
65
- type kindWithFixedCache struct {
65
+ type kindWithCache struct {
66
66
kind Kind
67
67
}
68
68
69
- func (ks * kindWithFixedCache ) Start (handler handler.EventHandler , queue workqueue.RateLimitingInterface ,
69
+ func (ks * kindWithCache ) Start (handler handler.EventHandler , queue workqueue.RateLimitingInterface ,
70
70
prct ... predicate.Predicate ) error {
71
71
return ks .kind .Start (handler , queue , prct ... )
72
72
}
You can’t perform that action at this time.
0 commit comments