Merge pull request #91307 from yuga711/attach

CSI: Modify VolumeAttachment check to use Informer/Cache
This commit is contained in:
Kubernetes Prow Robot
2020-06-15 08:10:10 -07:00
committed by GitHub
14 changed files with 129 additions and 43 deletions

View File

@@ -332,6 +332,7 @@ func startAttachDetachController(ctx ControllerContext) (http.Handler, bool, err
ctx.InformerFactory.Core().V1().PersistentVolumes(),
csiNodeInformer,
csiDriverInformer,
ctx.InformerFactory.Storage().V1().VolumeAttachments(),
ctx.Cloud,
plugins,
GetDynamicPluginProber(ctx.ComponentConfig.PersistentVolumeBinderController.VolumeConfiguration),