Skip to content

Commit bb69785

Browse files
committed
Client: use passed in Cache.DisableFor option
1 parent 07a8152 commit bb69785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ func newClient(config *rest.Config, options Options) (*client, error) {
191191

192192
// Load uncached GVKs.
193193
c.cacheUnstructured = options.Cache.Unstructured
194-
uncachedGVKs := map[schema.GroupVersionKind]struct{}{}
194+
c.uncachedGVKs = map[schema.GroupVersionKind]struct{}{}
195195
for _, obj := range options.Cache.DisableFor {
196196
gvk, err := c.GroupVersionKindFor(obj)
197197
if err != nil {
198198
return nil, err
199199
}
200-
uncachedGVKs[gvk] = struct{}{}
200+
c.uncachedGVKs[gvk] = struct{}{}
201201
}
202202
return c, nil
203203
}

0 commit comments

Comments
 (0)