Merge pull request #74321 from yastij/signal-undecorated-storage-event

use cache size to signal undecorated storage
This commit is contained in:
Kubernetes Prow Robot
2019-03-24 03:21:05 -07:00
committed by GitHub
4 changed files with 4 additions and 6 deletions

View File

@@ -40,10 +40,6 @@ func NewREST(optsGetter generic.RESTOptionsGetter, ttl uint64) *REST {
panic(err) // TODO: Propagate error up
}
// We explicitly do NOT do any decoration here - switching on Cacher
// for events will lead to too high memory consumption.
opts.Decorator = generic.UndecoratedStorage // TODO use watchCacheSize=-1 to signal UndecoratedStorage
store := &genericregistry.Store{
NewFunc: func() runtime.Object { return &api.Event{} },
NewListFunc: func() runtime.Object { return &api.EventList{} },