File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,9 @@ type ByObject struct {
191
191
UnsafeDisableDeepCopy * bool
192
192
}
193
193
194
+ // NewCacheFunc - Function for creating a new cache from the options and a rest config.
195
+ type NewCacheFunc func (config * rest.Config , opts Options ) (Cache , error )
196
+
194
197
// New initializes and returns a new Cache.
195
198
func New (config * rest.Config , opts Options ) (Cache , error ) {
196
199
if len (opts .Namespaces ) == 0 {
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ import (
31
31
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
32
32
)
33
33
34
- // NewCacheFunc - Function for creating a new cache from the options and a rest config.
35
- type NewCacheFunc func (config * rest.Config , opts Options ) (Cache , error )
36
-
37
34
// a new global namespaced cache to handle cluster scoped resources.
38
35
const globalCache = "_cluster-scope"
39
36
@@ -44,7 +41,7 @@ const globalCache = "_cluster-scope"
44
41
// to be used for excluding namespaces, this is better done via a Predicate. Also note that
45
42
// you may face performance issues when using this with a high number of namespaces.
46
43
//
47
- // Deprecated: Use cache.Options.View. Namespaces instead.
44
+ // Deprecated: Use cache.Options.Namespaces instead.
48
45
func MultiNamespacedCacheBuilder (namespaces []string ) NewCacheFunc {
49
46
return func (config * rest.Config , opts Options ) (Cache , error ) {
50
47
opts .Namespaces = namespaces
You can’t perform that action at this time.
0 commit comments