• Kubernetes Submit Queue's avatar
    Merge pull request #65447 from wongma7/mapvolume-symlink · 24ab69d3
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 65492, 65516, 65447). 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>.
    
    Resolve potential devicePath symlink when MapVolume in containerized kubelet
    
    **What this PR does / why we need it**: Ensures local block volumes will work in case kubelet is running in a container
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #65445
    
    **Special notes for your reviewer**: Code is mostly plumbing. If there is a better way to do it, let me know :)
    
    I assume there will be e2e tests for the non-containerized case. I will need to test the containerized case myself, which may take a while.
    **Release note**:
    
    ```release-note
    NONE
    ```
    24ab69d3
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
exec.go Loading commit data...
exec_mount.go Loading commit data...
exec_mount_test.go Loading commit data...
exec_mount_unsupported.go Loading commit data...
fake.go Loading commit data...
mount.go Loading commit data...
mount_linux.go Loading commit data...
mount_linux_test.go Loading commit data...
mount_unsupported.go Loading commit data...
mount_windows.go Loading commit data...
mount_windows_test.go Loading commit data...
nsenter_mount.go Loading commit data...
nsenter_mount_test.go Loading commit data...
nsenter_mount_unsupported.go Loading commit data...
safe_format_and_mount_test.go Loading commit data...