• Kubernetes Submit Queue's avatar
    Merge pull request #63045 from msau42/fix-subpath-readonly · e6b6e5c4
    Kubernetes Submit Queue authored
    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>.
    
    passthrough readOnly to subpath
    
    **What this PR does / why we need it**:
    If a volume is mounted as readonly, or subpath volumeMount is configured as readonly, then the subpath bind mount should be readonly.
    
    **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 #62752
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    Fixes issue where subpath readOnly mounts failed
    ```
    e6b6e5c4
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...