Merge pull request #30825 from wongma7/pv-controller-informer

Automatic merge from submit-queue

Use PV shared informer in PV controller

Use the PV shared informer, addressing (partially) https://github.com/kubernetes/kubernetes/issues/26247 . Using the PVC shared informer is not so simple because sometimes the controller wants to `Requeue` and...
This commit is contained in:
Kubernetes Submit Queue
2016-09-10 12:40:30 -07:00
committed by GitHub
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