mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-15 05:55:12 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix device unmap for non-attachable plugin case **What this PR does / why we need it**: This PR fixes following problem. - If plugin is non-attachable, global unmap path isn't stored in asw, then plugin fails to unmap volume. To store the path, this PR moves MarkDeviceAsMounted operation from the `if volumeAttacher != nil` block. **Which issue(s) this PR fixes**: Fixes #60025 **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /sig storage /cc @msau42 @jingxu97 @dhirajh @ianchakeres @mlmhl