alibaba-cloud-csi-driver
alibaba-cloud-csi-driver copied to clipboard
disk: cleanup old globalmount mounts
What type of PR is this?
/kind bug
What this PR does / why we need it:
These old mountpoints can block volumes cleanup. We do the cleanup at NodeStageVolume, so that the cleanup is performed once the v1.24 kubelet is upgraded and up. Or if no volume is mounted, the cleanup is performed at first volume mount.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
old volume mount path from v1.22 kubelet is automatically cleaned up
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: