kubernetes/test/e2e/storage
Kubernetes Submit Queue 9f3e2010dc
Merge pull request #65117 from mkimuram/issue/56803v2
Automatic merge from submit-queue (batch tested with PRs 64593, 65117, 65629, 65827, 65686). 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>.

Add e2e tests for volumeMode of persistent volume

This set of e2e tests is to confirm that persistent volume works well for all volumeModes.
Coverage of the tests are shown in the figure of [Test cases], below.

Once implementation policy is confirmed to be good, we can add plugins and test cases to this.
[Test cases]
```
 #   plugin      volumeMode    Test case                                                Expectation
--- ---------- -------------- ------------------------------------------------------ ------------
 1    iSCSI      Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
 2    iSCSI      Block         (b) Create Pod and restart kubelet and confirm PV      Success
 3    iSCSI      Block         (c) Create Pod and restart kubelet while deleting PV   Success
 4    iSCSI      FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
 5    iSCSI      FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
 6    iSCSI      FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
 7    RBD        Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
 8    RBD        Block         (b) Create Pod and restart kubelet and confirm PV      Success
 9    RBD        Block         (c) Create Pod and restart kubelet while deleting PV   Success
10    RBD        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
11    RBD        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
12    RBD        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
13    CephFS     Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
14    CephFS     FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
15    CephFS     FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
16    CephFS     FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
17    NFS        Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
18    NFS        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
19    NFS        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
20    NFS        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
```




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

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

**Special notes for your reviewer**:
/sig storage
@gnufied  @rootfs @jsafrane @jeffvance 

This PR is intend to reflect the comments for the below PR.
https://github.com/kubernetes/kubernetes/pull/56804

**Release note**:

```release-note
NONE
```
2018-07-04 18:52:10 -07:00
..
utils Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
vsphere Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
csi_objects.go e2e/storage: central argument handling 2018-05-28 11:46:50 +02:00
csi_volumes.go Added attach/mount/check steps to CSI Driver E2E tests 2018-06-19 13:43:36 -07:00
empty_dir_wrapper.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
ephemeral_volume.go Fix setup of configmap/secret/projected/downwardapi 2018-06-07 09:15:01 -04:00
flexvolume.go Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
generic_persistent_volume-disruptive.go Refactor subpath reconstruction tests to use util test 2018-04-11 14:20:29 -07:00
mounted_volume_resize.go Remove feature tags from e2e test for resize 2018-05-25 15:32:44 -04:00
nfs_persistent_volume-disruptive.go Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
pd.go Typo fix: toto -> to 2018-06-12 23:12:39 +08:00
persistent_volumes-gce.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
persistent_volumes-local.go Prepare local volumes via hostexec pod. 2018-06-26 13:18:55 +08:00
persistent_volumes-volumemode.go Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
persistent_volumes.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
pv_protection.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
pvc_protection.go Enable PV protection test by default 2018-02-23 16:59:22 +01:00
regional_pd.go Merge pull request #64480 from verult/repd-ig-fix 2018-05-31 14:12:15 -07:00
subpath.go Only mount subpath as readonly if specified in volumeMount 2018-06-04 12:05:23 -07:00
volume_expand.go Remove feature tags from e2e test for resize 2018-05-25 15:32:44 -04:00
volume_io.go Move Ceph server secret creation to common code. 2018-05-25 14:02:59 +02:00
volume_metrics.go wait for bound pvc metric updated before validating 2018-02-16 09:57:30 +08:00
volume_provisioning.go Merge pull request #65223 from jsafrane/aws-inaccessible-key 2018-06-21 19:48:10 -07:00
volumes.go Remove Feature:Volume from tests 2018-06-05 15:39:32 +02:00