diff --git a/pkg/client/cache/listers.go b/pkg/client/cache/listers.go index 6bdf3e3b7d5..ef3d171e213 100644 --- a/pkg/client/cache/listers.go +++ b/pkg/client/cache/listers.go @@ -62,7 +62,7 @@ func ListAllByNamespace(indexer Indexer, namespace string, selector labels.Selec return nil } - items, err := indexer.Index(NamespaceIndex, api.ObjectMeta{Namespace: namespace}) + items, err := indexer.Index(NamespaceIndex, &api.ObjectMeta{Namespace: namespace}) if err != nil { // Ignore error; do slow search without index. glog.Warningf("can not retrieve list of objects using index : %v", err)