k3s/pkg/volume/flexvolume
Kubernetes Submit Queue f07279ada2 Merge pull request #51474 from verult/ProberTest
Automatic merge from submit-queue (batch tested with PRs 51805, 51725, 50925, 51474, 51638)

Flexvolume dynamic plugin discovery: Prober unit tests and basic e2e test.

**What this PR does / why we need it**: Tests for changes introduced in PR #50031 .
As part of the prober unit test, I mocked filesystem, filesystem watch, and Flexvolume plugin initialization.
Moved the filesystem event goroutine to watcher implementation.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #51147

**Special notes for your reviewer**:
First commit contains added functionality of the mock filesystem.
Second commit is the refactor for moving mock filesystem into a common util directory.
Third commit is the unit and e2e tests.

**Release note**:

```release-note
NONE
```
/release-note-none
/sig storage
/assign @saad-ali @liggitt 
/cc @mtaufen @chakri-nelluri @wongma7
2017-09-03 11:10:05 -07:00
..
BUILD Added basic Flexvolume dynamic plugin discovery e2e test; added Flexvolume prober unit tests. 2017-08-31 16:50:02 -07:00
OWNERS remove deads2k from volume reviewer 2017-07-25 08:52:25 -04:00
attacher-defaults.go SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00
attacher.go WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04:00
attacher_test.go WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04:00
common_test.go update import 2017-07-20 11:03:49 -07:00
detacher-defaults.go Add pluginName to VolumeHost.GetMouter 2017-08-14 12:16:26 +02:00
detacher.go Add pluginName to VolumeHost.GetMouter 2017-08-14 12:16:26 +02:00
detacher_test.go Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
driver-call.go refactor(flexvolume): simplify capabilities handling 2017-08-24 22:18:58 +11:00
driver-call_test.go refactor(flexvolume): simplify capabilities handling 2017-08-24 22:18:58 +11:00
fake_watcher.go Added basic Flexvolume dynamic plugin discovery e2e test; added Flexvolume prober unit tests. 2017-08-31 16:50:02 -07:00
flexvolume_test.go Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
mounter-defaults.go refactor(flexvolume): simplify capabilities handling 2017-08-24 22:18:58 +11:00
mounter.go SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00
mounter_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
plugin-defaults.go Added basic Flexvolume dynamic plugin discovery e2e test; added Flexvolume prober unit tests. 2017-08-31 16:50:02 -07:00
plugin.go Merge pull request #51474 from verult/ProberTest 2017-09-03 11:10:05 -07:00
plugin_test.go update import 2017-07-20 11:03:49 -07:00
probe.go Added basic Flexvolume dynamic plugin discovery e2e test; added Flexvolume prober unit tests. 2017-08-31 16:50:02 -07:00
probe_test.go Added basic Flexvolume dynamic plugin discovery e2e test; added Flexvolume prober unit tests. 2017-08-31 16:50:02 -07:00
unmounter-defaults.go Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
unmounter.go Allow unmounting bind-mounted directories. 2017-07-24 13:33:10 +02:00
unmounter_test.go Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
util.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
volume.go Pass pod metadata to flex plugin 2017-05-18 00:49:18 -04:00