PV Controller: PV plugin and mode metrics

This commit is contained in:
Tomas Smetana
2020-10-20 11:49:11 +02:00
parent 8647eece9c
commit 0c4e05a245
3 changed files with 55 additions and 5 deletions

View File

@@ -317,7 +317,7 @@ func (ctrl *PersistentVolumeController) Run(stopCh <-chan struct{}) {
go wait.Until(ctrl.volumeWorker, time.Second, stopCh)
go wait.Until(ctrl.claimWorker, time.Second, stopCh)
metrics.Register(ctrl.volumes.store, ctrl.claims)
metrics.Register(ctrl.volumes.store, ctrl.claims, &ctrl.volumePluginMgr)
<-stopCh
}