• Kubernetes Submit Queue's avatar
    Merge pull request #39768 from rkouj/check-path-exists · 12b344aa
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 39768, 39463)
    
    Check if path exists before performing unmount
    
    This is part 3 of an effort to check if path exists before performing an unmount operation.
    [Part 1](https://github.com/kubernetes/kubernetes/pull/38547) and [part 2](https://github.com/kubernetes/kubernetes/pull/39311) involved auditing the different volume plugins and refactoring their `TearDownAt()s` to use the common util function/or create one if absent.
    
    The ideal way to do this change would involve refactoring of the `TearDownAt()s` of these plugins and make a common util function that checks path. (The plugins involved in this PR use someway of unmounting a bind mount and unmounting a global path, there is also refactoring needed to consolidate disk_manager of fc, rbd and iscsi). A non-goal part of this effort can also involve refactoring all the `SetupAt()s`
    
    In the interest of time and considering other higher priority issues that I am caught up with, I am unable to give the time the refactoring needs. Hence I've made the minimum change that would give the desired output.
    
    I am tracking the work pending in this issue: https://github.com/kubernetes/kubernetes/issues/39251
    
    ```release-note
    NONE
    ```
    12b344aa
Name
Last commit
Last update
..
e2e Loading commit data...
e2e_node Loading commit data...
fixtures Loading commit data...
images Loading commit data...
integration Loading commit data...
kubemark Loading commit data...
list Loading commit data...
soak Loading commit data...
utils Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
test_owners.csv Loading commit data...