k3s/pkg/volume/azure_dd
Kubernetes Submit Queue f485cb790f
Merge pull request #64416 from cofyc/remove_unnecessary_getmountrefs
Automatic merge from submit-queue (batch tested with PRs 64416, 63625, 60967, 64767, 64588). 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>.

Remove mount.GetMountRefs in favor of mounter.GetMountRefs

**What this PR does / why we need it**:

Currently, there are two `GetMountRefs` functions:

- `mount.GetMountRefs`: used in various volume plugins
- `<mounter>.GetMountRefs` (previously `mount.GetMountRefsByDev` introduced in [#49988](https://github.com/kubernetes/kubernetes/pull/49988/files#diff-0c0020e71c995790a90ad9c61ede7632R154), moved to `Mounter` interface in #62903)

This is confusing, and it's better to implement `GetMountRefs` on mounter interface, because different mounters can have their own implementation (especially for nsenter).

This pr removes `mount.GetMountRefs` in favor of mounter.GetMountRefs.

More discussions: https://github.com/kubernetes/kubernetes/pull/62102#issuecomment-390081884 and https://github.com/kubernetes/kubernetes/pull/62102#issuecomment-390123022.

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-06-20 07:12:14 -07:00
..
BUILD Add block volume support to internal provisioners. 2018-05-29 12:02:40 +02:00
OWNERS add Dong Liu as approver and add OWNERS in credentialprovider 2017-12-19 09:31:43 +00:00
attacher.go Merge pull request #63270 from andyzhangx/volume-partition-azure-fix 2018-06-04 00:47:26 -07:00
azure_common.go add block device support for azure disk 2018-05-21 09:03:59 +00:00
azure_common_linux.go Merge pull request #63270 from andyzhangx/volume-partition-azure-fix 2018-06-04 00:47:26 -07:00
azure_common_test.go
azure_common_unsupported.go remove format operation in WaitForAttach 2018-04-28 02:12:09 +00:00
azure_common_windows.go respect fstype in Windows for azure disk 2018-03-16 08:25:03 +00:00
azure_dd.go Merge pull request #64416 from cofyc/remove_unnecessary_getmountrefs 2018-06-20 07:12:14 -07:00
azure_dd_block.go Refactor of GenerateMapDeviceFunc to delegate Map call to volume plugin. 2018-06-03 17:25:37 -04:00
azure_dd_block_test.go add volumeName in getVolumeSpecFromGlobalMapPath 2018-05-22 06:52:24 +00:00
azure_dd_test.go
azure_mounter.go add block device support for azure disk 2018-05-21 09:03:59 +00:00
azure_provision.go add external resource group support for azure disk 2018-06-06 05:19:32 +00:00