From bbf0de8176099eca2e1df9dd0f2b115f0940b553 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 23 Sep 2025 13:27:24 +0200 Subject: [PATCH] Skip VolumeAttachments of other drivers During periodic re-sync in ReconcileVA, skip VolumeAttachments of unrelated CSI drivers. The VolumeAttachments will be skipped anyway in syncVA(). This only prevents log spam and saves some CPU. --- pkg/controller/csi_handler.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/controller/csi_handler.go b/pkg/controller/csi_handler.go index 2a90d7fee..465ec59d3 100644 --- a/pkg/controller/csi_handler.go +++ b/pkg/controller/csi_handler.go @@ -142,6 +142,11 @@ func (h *csiHandler) ReconcileVA(ctx context.Context) error { } for _, va := range vas { + if va.Spec.Attacher != h.attacherName { + // skip VolumeAttachments of other CSI drivers + continue + } + nodeID, err := h.getNodeID(logger, h.attacherName, va.Spec.NodeName, va) if err != nil { logger.Error(err, "Failed to find node ID err")