Use PV shared informer in PV controller

This commit is contained in:
Matthew Wong
2016-08-25 21:55:23 -04:00
parent d836b248b2
commit 1d6dbdd9d2
6 changed files with 80 additions and 44 deletions

View File

@@ -594,7 +594,7 @@ func newTestController(kubeClient clientset.Interface, volumeSource, claimSource
if classSource == nil {
classSource = framework.NewFakeControllerSource()
}
ctrl := NewPersistentVolumeController(
ctrl := NewPersistentVolumeControllerFromClient(
kubeClient,
5*time.Second, // sync period
nil, // alpha provisioner