remove class store since we donot update it in controller

This commit is contained in:
xushiwei 00425595
2018-09-06 11:08:58 +08:00
parent 1f658f29f7
commit ae2be6651e
3 changed files with 2 additions and 22 deletions

View File

@@ -1042,7 +1042,6 @@ func runSyncTests(t *testing.T, tests []controllerTest, snapshotClasses []*crdv1
// Inject classes into controller via a custom lister.
indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{})
for _, class := range snapshotClasses {
ctrl.classStore.Add(class)
indexer.Add(class)
}
ctrl.classLister = storagelisters.NewVolumeSnapshotClassLister(indexer)