mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-27 13:20:26 +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>. csi: Remove stale volume path **What this PR does / why we need it**: The CSI mounter creates the following paths during SetUp(): * .../pods/\<podID\>/volumes/kubernetes.io~csi/\<specVolId\>/mount/ * .../pods/\<podID\>/volumes/kubernetes.io~csi/\<specVolId\>/volume_data.json During TearDown(), it does not remove the `.../kubernetes.io~csi/<specVolId>/` directory, leaving behind orphan volumes: method cleanupOrphanedPodDirs() complains with 'Orphaned pod found, but volume paths are still present on disk'. Fix that by removing the above directory in removeMountDir(). **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: **Special notes for your reviewer**: **Release note**: ```release-note NONE ```