Commit Graph

30 Commits (5c780c8cb134bad1439e170c4f834586a0bc5373)

Author SHA1 Message Date
Kubernetes Prow Robot 8f7ccf8d4c
Merge pull request #69036 from wackxu/snapshottest
add e2e test for snapshot
2019-02-08 13:14:04 -08:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
xushiwei 7280fcef5c address reviewer comments 2019-02-01 16:34:16 +08:00
xushiwei 3410d435ed add snapshot e2e 2019-01-30 19:04:45 +08:00
Cheng Xing 12ece9dacb CSI topology e2e tests 2019-01-11 18:36:06 -08:00
Jan Safranek d617dcb1e0 CSI: Add test for passing Pod information in NodePublish call 2019-01-02 16:11:41 +01:00
Patrick Ohly 5349ce75fa e2e/storage: remove code duplication
The setup of the V0 hostpath driver was done with copy-and-paste and
then changing just the driver name and the manifests. The same can be
achieved by making the base struct a bit more configurable, which
simplifies future changes (less code).

Renaming the provisioner container was unnecessary and was reverted to
make it possible to use the same patch configuration.

While at it, also fix the InitHostV0PathCSIDriver typo.
2018-12-20 13:41:48 +01:00
Kubernetes Prow Robot ac6fa2235b
Merge pull request #71742 from pohly/csi-sidecar-test
e2e: use quay.io/k8scsi images, bump versions
2018-12-19 11:58:37 -08:00
Michelle Au b6e64936fe Add owners file for storage e2e manifests 2018-12-18 15:15:47 -08:00
Patrick Ohly 6ca66d7047 e2e: use quay.io/k8scsi images, bump versions
Commit 503f654d7a, "Update CSI tests to
point to 1.0.0 external bits", changed to images published on gcr.io,
perhaps because the images on quay.io weren't ready yet. We now have
up-to-date images on quay.io and should be using those.
2018-12-12 14:49:23 +01:00
Michelle Au b02cada150
Revert "CSI: enhance driver tests to update the drivers." 2018-11-28 17:10:13 -08:00
Jan Safranek 8fb3e9fe2a Make HostPath CSI driver persistent across restart.
The driver dynamically provisions its volumes in /tmp. To preserve the data
across driver restarts, the directory must be mapped to more persistent
place, /tmp on the host seems to be the safest choice.
2018-11-27 13:53:48 +01:00
saad-ali aa8244beb5 Modify CSI to handle both 0.3 and 1.0
Modify the CSI volume plugin to handle CSI version 0.x as well as 1.x
2018-11-21 18:37:31 -08:00
Renaud Gaubert 1a3fbf1f13 Update e2e tests to include CSI 2018-11-17 01:52:57 +01:00
David Zhu 5c0948c9f1 Simplify GCE PD CSI Socket path 2018-11-16 12:00:27 -08:00
saad-ali 503f654d7a Update CSI tests to point to 1.0.0 external bits. 2018-11-15 20:01:50 -08:00
k8s-ci-robot e05659cf8e
Merge pull request #70710 from msau42/remove-subpath-ro-test
Remove subpath ro test
2018-11-06 20:21:44 -08:00
Michelle Au c13eb07cdf Fix csi rbac in e2e manifests 2018-11-06 10:35:46 -08:00
k8s-ci-robot 247b8fffb7
Merge pull request #70597 from msau42/update-pd-csi
Update pd csi e2e yamls with latest driver
2018-11-02 18:02:17 -07:00
Michelle Au 45ee18a1f1 Update pd csi e2e yamls with latest driver 2018-11-02 13:35:39 -07:00
Patrick Ohly 7ba52472b7 e2e: remove "nodes" permission from driver-registrar RBAC
In the review of
https://github.com/kubernetes-csi/driver-registrar/pull/69 it was
pointed out that the "nodes" permissions are not longer needed.
2018-11-02 12:29:16 +01:00
Patrick Ohly a56c518292 e2e CSI: bump all containers to v0.4.1 2018-10-27 00:39:44 +02:00
Patrick Ohly 38efff564c e2e: deploy from manifest files + enhance CSI volume output
Ensuring that CSI drivers get deployed for testing exactly as intended
was problematic because the original .yaml files had to be converted
into code. e2e/manifest helped a bit, but not enough:
- could not load all entities
- didn't handle loading .yaml files with multiple entities
- actually creating and deleting entities still had to be done in tests

The new framework utility code handles all of that, including the
tricky cleanup operation that tests got wrong (AfterEach does not get
called after test failures!).

In addition, it is ensuring that each test gets its own instance of the
entities.

The PSP role binding for hostpath is now necessary because we switch
from creating a pod directly to creation via the StatefulSet
controller, which runs with less privileges.

Without this, the hostpath test runs into these errors in the
kubernetes-e2e-gce job:

Oct 19 16:30:09.225: INFO: At 2018-10-19 16:25:07 +0000 UTC - event for csi-hostpath-attacher: {statefulset-controller } FailedCreate: create Pod csi-hostpath-attacher-0 in StatefulSet csi-hostpath-attacher failed error: pods "csi-hostpath-attacher-0" is forbidden: unable to validate against any pod security policy: []
Oct 19 16:30:09.225: INFO: At 2018-10-19 16:25:07 +0000 UTC - event for csi-hostpath-provisioner: {statefulset-controller } FailedCreate: create Pod csi-hostpath-provisioner-0 in StatefulSet csi-hostpath-provisioner failed error: pods "csi-hostpath-provisioner-0" is forbidden: unable to validate against any pod security policy: []
Oct 19 16:30:09.225: INFO: At 2018-10-19 16:25:07 +0000 UTC - event for csi-hostpathplugin: {daemonset-controller } FailedCreate: Error creating: pods "csi-hostpathplugin-" is forbidden: unable to validate against any pod security policy: []

The extra role binding is silently ignored on clusters which don't
have this particular role.
2018-10-26 22:07:34 +02:00
Patrick Ohly dcbcef13b4 e2e: simplify gcePD .yaml files
Setting command line arguments via env variables that are not needed
by the binaries is just unnecessarily complex. The driver renaming
code in the E2E manifest PR would have to be made more complex to deal
with such a deployment. It is easier for that code and humans who look
at the .yaml file to remove the indirection.
2018-10-26 10:32:46 +02:00
David Zhu fa41fa9acd Update provisioner name and don't supply zone in GCE PD CSI test 2018-10-02 16:52:14 -07:00
Jan Safranek 60f736ed3d Add controller roles to CSI e2e tests
External attacher + provisioner need extra role for leader election.
2018-10-01 10:31:31 +02:00
David Zhu f33f850ff1 Update GCE PD CSI Driver to run by default and automatically set up secrets with GCP Service Account Key 2018-09-26 10:10:48 -07:00
Cheng Xing add6e0d7bb CSI e2e test: driver registrar updates for moving PluginWatcher to beta 2018-09-05 14:58:04 +02:00
David Zhu 4d11dab272 CSI test refactor to be more easily extensible for more plugins when there are more tests 2018-04-18 11:24:36 -07:00
David Zhu 01d916167b Add GCE-PD CSI Driver test to E2E test suite 2018-04-13 15:31:33 -07:00