Skip to content

Commit ae1cde6

Browse files
authored
Merge pull request #2288 from alebedev87/release-0.13-multins-cache-index-fix
🐛 fix a bug in multinamespaced cache implementation
2 parents 44c5d50 + 03d09f6 commit ae1cde6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cache/multi_namespace_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (c *multiNamespaceCache) WaitForCacheSync(ctx context.Context) bool {
185185
func (c *multiNamespaceCache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error {
186186
isNamespaced, err := objectutil.IsAPINamespaced(obj, c.Scheme, c.RESTMapper)
187187
if err != nil {
188-
return nil //nolint:nilerr
188+
return err
189189
}
190190

191191
if !isNamespaced {

0 commit comments

Comments
 (0)