k3s/test/e2e
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
..
apimachinery Merge pull request #65203 from mgdevstack/master-conformance-namespace-pod 2018-06-28 22:20:05 -07:00
apps Merge pull request #64350 from jarrpa/statefulset-pvc-test 2018-07-04 15:01:08 -07:00
auth Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
autoscaling Merge pull request #65437 from losipiuk/lo/gpu-tests-from-env 2018-06-26 08:55:44 -07:00
chaosmonkey Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
common Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
framework Merge pull request #65117 from mkimuram/issue/56803v2 2018-07-04 18:52:10 -07:00
generated Add pointer comments 2018-04-25 09:47:14 -07:00
instrumentation Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
kubectl Add debugging for scale e2e test errors 2018-06-26 13:34:48 -04:00
lifecycle Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
manifest Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
network split services between multiple namespaces 2018-07-02 10:31:05 -04:00
node Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
perftype
scalability Revert "Make no. of services in load test configurable" 2018-06-29 11:33:14 +02:00
scheduling Change our tests to ensure that critical system pods are created in the system namespace 2018-06-28 22:25:27 -07:00
servicecatalog Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
storage Merge pull request #65117 from mkimuram/issue/56803v2 2018-07-04 18:52:10 -07:00
testing-manifests add e2e test for standalone (exposed) NEG annotation 2018-06-22 16:15:32 -07:00
ui Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
upgrades Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
README.md
e2e-example-config.json
e2e.go move NEG out of featuregate 2018-06-25 09:47:39 -07:00
e2e_test.go Move multizone e2e to sig scheduling path 2018-01-25 08:42:16 -08:00
examples.go removes job scaler 2018-04-04 08:23:21 -04:00
gke_local_ssd.go update tests to be specific about the versions they are testing instead of floating 2018-05-01 13:18:41 -04:00
gke_node_pools.go

README.md

See e2e-tests

Analytics