diff options
| author | Tim Allclair <tallclair@google.com> | 2019-02-28 11:02:30 -0800 |
|---|---|---|
| committer | Tim Allclair <tallclair@google.com> | 2019-04-05 10:40:19 -0700 |
| commit | bec026b49d94dbf5f0c694b7b40278bfa1337c59 (patch) | |
| tree | f9a05358b8284f95289f77bfe2da2d076466ccba /contributors/devel/sig-node/e2e-node-tests.md | |
| parent | 57518dbe91cc784de079f50b5677098132ca5438 (diff) | |
Add documentation on running node e2e's with custom image configs
Diffstat (limited to 'contributors/devel/sig-node/e2e-node-tests.md')
| -rw-r--r-- | contributors/devel/sig-node/e2e-node-tests.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contributors/devel/sig-node/e2e-node-tests.md b/contributors/devel/sig-node/e2e-node-tests.md index 4f3327cb..31c0459c 100644 --- a/contributors/devel/sig-node/e2e-node-tests.md +++ b/contributors/devel/sig-node/e2e-node-tests.md @@ -148,6 +148,30 @@ test in parallel against different instances of the same image. make test-e2e-node REMOTE=true INSTANCE_PREFIX="my-prefix" ``` +## Run tests using a custom image config + +This is useful if you want to test out different runtime configurations. First, make a local +(temporary) copy of the base image config from the test-infra repo: +https://github.com/kubernetes/test-infra/tree/master/jobs/e2e_node + +Make your desired modifications to the config, and update data paths to be absolute paths to the +relevant files on your local machine (e.g. prepend your home directory path to each). For example: + +```diff + images: + cos-stable: + image_regex: cos-stable-60-9592-84-0 + project: cos-cloud +- metadata: "user-data</go/src/github.com/containerd/cri/test/e2e_node/init.yaml,containerd-configure-sh</go/src/github.com/containerd/cri/cluster/gce/configure.sh,containerd-extra-init-sh</go/src/github.com/containerd/cri/test/e2e_node/gci-init.sh,containerd-env</workspace/test-infra/jobs/e2e_node/containerd/cri-master/env,gci-update-strategy=update_disabled" ++ metadata: "user-data</home/tallclair/go/src/github.com/containerd/cri/test/e2e_node/init.yaml,containerd-configure-sh</home/tallclair/go/src/github.com/containerd/cri/cluster/gce/configure.sh,containerd-extra-init-sh</home/tallclair/go/src/github.com/containerd/cri/test/e2e_node/gci-init.sh,containerd-env</home/tallclair/workspace/test-infra/jobs/e2e_node/containerd/cri-master/env,gci-update-strategy=update_disabled" +``` + +Finally, run the tests with your custom config: + +```sh +make test-e2e-node REMOTE=true IMAGE_CONFIG_FILE="<local file>" [...] +``` + # Additional Test Options for both Remote and Local execution ## Only run a subset of the tests |
