k3s/pkg/util/mount
Kubernetes Submit Queue e6b6e5c4b4
Merge pull request #63045 from msau42/fix-subpath-readonly
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
```
2018-05-07 23:36:49 -07:00
..
BUILD add tests for GetFileType 2018-04-10 10:53:11 +08:00
OWNERS add andyzhangx as Reviewer 2018-04-16 07:13:15 +00:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
exec.go Add Exec interface to VolumeHost 2017-08-14 12:16:25 +02:00
exec_mount.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
exec_mount_test.go Merge pull request #63045 from msau42/fix-subpath-readonly 2018-05-07 23:36:49 -07:00
exec_mount_unsupported.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
fake.go Merge pull request #63045 from msau42/fix-subpath-readonly 2018-05-07 23:36:49 -07:00
mount.go Merge pull request #63045 from msau42/fix-subpath-readonly 2018-05-07 23:36:49 -07:00
mount_linux.go Merge pull request #63045 from msau42/fix-subpath-readonly 2018-05-07 23:36:49 -07:00
mount_linux_test.go Merge pull request #63045 from msau42/fix-subpath-readonly 2018-05-07 23:36:49 -07:00
mount_unsupported.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
mount_windows.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
mount_windows_test.go use TempDir func in mount_windows_test.go 2018-05-03 12:58:32 +00:00
nsenter_mount.go Merge pull request #62903 from cofyc/fixfsgroupcheckinlocal 2018-05-02 20:13:11 -07:00
nsenter_mount_test.go Lock subPath volumes 2018-03-05 09:14:44 +01:00
nsenter_mount_unsupported.go Merge pull request #62903 from cofyc/fixfsgroupcheckinlocal 2018-05-02 20:13:11 -07:00
safe_format_and_mount_test.go Use `blkid` to get fs type of device. 2018-02-05 11:21:35 +08:00