return destroy func to clean up internal resources of storage
This commit is contained in:
@@ -53,7 +53,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *FinalizeREST) {
|
||||
prefix := "/" + opts.ResourcePrefix
|
||||
|
||||
newListFunc := func() runtime.Object { return &api.NamespaceList{} }
|
||||
storageInterface := opts.Decorator(
|
||||
storageInterface, _ := opts.Decorator(
|
||||
opts.StorageConfig,
|
||||
cachesize.GetWatchCacheSizeByResource(cachesize.Namespaces),
|
||||
&api.Namespace{},
|
||||
|
||||
Reference in New Issue
Block a user