Skip to content

Commit

Permalink
Remove delegating map impl, and simplify InformersMap
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vince@prigna.com>
  • Loading branch information
vincepri committed Dec 21, 2022
1 parent 67c79f0 commit 24812a3
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 328 deletions.
2 changes: 1 addition & 1 deletion pkg/cache/cache.go
Expand Up @@ -174,7 +174,7 @@ func New(config *rest.Config, opts Options) (Cache, error) {
if err != nil {
return nil, err
}
transformByObj := internal.TransformFuncByObjectFromMap(transformByGVK)
transformByObj := internal.TransformFuncByGVKFromMap(transformByGVK)

internalSelectorsByGVK := internal.SelectorsByGVK{}
for gvk, selector := range selectorsByGVK {
Expand Down
124 changes: 0 additions & 124 deletions pkg/cache/internal/deleg_map.go

This file was deleted.

0 comments on commit 24812a3

Please sign in to comment.