Skip to content

Commit fb3c6fd

Browse files
authored
Merge pull request #2287 from k8s-infra-cherrypick-robot/cherry-pick-2252-to-release-0.14
[release-0.14] 🐛 fix a bug in multinamespaced cache implementation
2 parents d9f8c47 + 57b0968 commit fb3c6fd

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)