add namespace index to rc and pod

This commit is contained in:
mqliang
2016-04-07 20:15:21 +08:00
parent 7e462c2310
commit 9011207f18
25 changed files with 263 additions and 168 deletions

View File

@@ -1139,7 +1139,7 @@ func TestCleanupOrphanedPods(t *testing.T) {
nc.nodeStore.Store.Add(newNode("bar"))
for _, pod := range pods {
p := pod
nc.podStore.Store.Add(&p)
nc.podStore.Indexer.Add(&p)
}
var deleteCalls int