Skip to content

Commit

Permalink
Merge pull request #2287 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2252-to-release-0.14

[release-0.14] 🐛 fix a bug in multinamespaced cache implementation
  • Loading branch information
k8s-ci-robot committed Apr 24, 2023
2 parents d9f8c47 + 57b0968 commit fb3c6fd
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 fb3c6fd

Please sign in to comment.