This is a container image to run Kubernetes end-to-end tests. It includes the e2e.test
binary, and two command line tools, kubectl
and ginkgo
.
You can find available images on Docker Hub, on the docker.io/zlabjp/kube-conformance repository.
Here is an example for running e2e tests for the CSI hostpath driver:
KUBECONFIG="${KUBECONFIG:-$HOME/.kube/config}"
docker run --init --rm -w "/workspace" -v "$KUBECONFIG:/config" -v "${PWD}:/workspace" docker.io/zlabjp/kube-conformance:1.18.0 \
ginkgo -p \
--focus='External.Storage.*csi-hostpath' \
--skip='\[Feature:|\[Disruptive\]' \
/usr/local/bin/e2e.test \
-- \
--kubeconfig=/config \
--provider=local \
--storage.testdriver=/workspace/hostpath-testdriver.yaml
See the following pages for more details on Kubernetes e2e tests:
- End-to-End Testing in Kubernetes
- Kubernetes End-to-end Testing for Everyone - Kubernetes
- https://github.com/kubernetes/kubernetes/tree/master/test/e2e/storage/external
MIT