Skip to content

Commit

Permalink
Merge pull request #2288 from alebedev87/release-0.13-multins-cache-i…
Browse files Browse the repository at this point in the history
…ndex-fix

🐛 fix a bug in multinamespaced cache implementation
  • Loading branch information
k8s-ci-robot committed Apr 25, 2023
2 parents 44c5d50 + 03d09f6 commit ae1cde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/multi_namespace_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (c *multiNamespaceCache) WaitForCacheSync(ctx context.Context) bool {
func (c *multiNamespaceCache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error {
isNamespaced, err := objectutil.IsAPINamespaced(obj, c.Scheme, c.RESTMapper)
if err != nil {
return nil //nolint:nilerr
return err
}

if !isNamespaced {
Expand Down

0 comments on commit ae1cde6

Please sign in to comment.