We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ba488 commit f0a6aa1Copy full SHA for f0a6aa1
pkg/controller/volume/attachdetach/attach_detach_controller.go
@@ -203,9 +203,12 @@ func NewAttachDetachController(
203
204
// This custom indexer will index pods by its PVC keys. Then we don't need
205
// to iterate all pods every time to find pods which reference given PVC.
206
- adc.podIndexer.AddIndexers(kcache.Indexers{
+ err := adc.podIndexer.AddIndexers(kcache.Indexers{
207
pvcKeyIndex: indexByPVCKey,
208
})
209
+ if err != nil {
210
+ klog.Warningf("adding indexer got %v", err)
211
+ }
212
213
nodeInformer.Informer().AddEventHandler(kcache.ResourceEventHandlerFuncs{
214
AddFunc: adc.nodeAdd,
0 commit comments