Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/controller/csi_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tut tut - tests.:-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried! But the test framework runs ReconcileVA() in a loop and it's hard to check just the first ReconcileVA result :-(

nodeID, err := h.getNodeID(logger, h.attacherName, va.Spec.NodeName, va)
if err != nil {
logger.Error(err, "Failed to find node ID err")
Expand Down