Fix data race in PVC Run/Stop methods

This commit is contained in:
Jordan Liggitt
2016-08-21 14:32:12 -04:00
parent c39b584ea2
commit 387f9ea952
6 changed files with 39 additions and 52 deletions

View File

@@ -154,13 +154,10 @@ const createProvisionedPVInterval = 10 * time.Second
// changes.
type PersistentVolumeController struct {
volumeController *framework.Controller
volumeControllerStopCh chan struct{}
volumeSource cache.ListerWatcher
claimController *framework.Controller
claimControllerStopCh chan struct{}
claimSource cache.ListerWatcher
classReflector *cache.Reflector
classReflectorStopCh chan struct{}
classSource cache.ListerWatcher
kubeClient clientset.Interface
eventRecorder record.EventRecorder