diff --git a/pkg/sharding/listwatch.go b/pkg/sharding/listwatch.go index 5751cc56dd..748b85eb0e 100644 --- a/pkg/sharding/listwatch.go +++ b/pkg/sharding/listwatch.go @@ -66,7 +66,7 @@ func (s *shardedListWatch) List(options metav1.ListOptions) (runtime.Object, err } } - metaObj := meta.ListAccessor(list) + metaObj, err := meta.ListAccessor(list) res.ListMeta.ResourceVersion = metaObj.GetResourceVersion() return res, nil