Revert "Use PV shared informer in PV controller"

This commit is contained in:
Matthew Wong
2016-09-13 10:12:34 -04:00
parent 115855bbd2
commit 25e9b9dcf9
6 changed files with 44 additions and 80 deletions

View File

@@ -154,8 +154,8 @@ const createProvisionedPVInterval = 10 * time.Second
// framework.Controllers that watch PersistentVolume and PersistentVolumeClaim
// changes.
type PersistentVolumeController struct {
volumeController framework.ControllerInterface
pvInformer framework.SharedIndexInformer
volumeController *framework.Controller
volumeSource cache.ListerWatcher
claimController *framework.Controller
claimSource cache.ListerWatcher
classReflector *cache.Reflector
@@ -176,13 +176,6 @@ type PersistentVolumeController struct {
claims cache.Store
classes cache.Store
// isInformerInternal is true if the informer we hold is a personal informer,
// false if it is a shared informer. If we're using a normal shared informer,
// then the informer will be started for us. If we have a personal informer,
// we must start it ourselves. If you start the controller using
// NewPersistentVolumeController(passing SharedInformer), this will be false.
isInformerInternal bool
// Map of scheduled/running operations.
runningOperations goroutinemap.GoRoutineMap