From 86d5cb43fd19daada6843ba8e4fc45163d3d17b4 Mon Sep 17 00:00:00 2001 From: lvjiawei Date: Fri, 27 Dec 2019 15:23:31 +0800 Subject: [PATCH] Update test README.md Add flags and its explaination. --- test/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test/README.md b/test/README.md index 0110c8148f..817047360e 100644 --- a/test/README.md +++ b/test/README.md @@ -121,6 +121,10 @@ Tests importing [`knative.dev/pkg/test`](#test-library) recognize these flags: - [`--cluster`](#specifying-cluster) - [`--namespace`](#specifying-namespace) - [`--logverbose`](#output-verbose-logs) +- [`--ingressendpoint`](#specifying-ingress-endpoint) +- [`--dockerrepo`](#specifying-docker-repo) +- [`--tag`](#specifying-tag) +- [`--imagetemplate`](#specifying-image-template) ### Specifying kubeconfig @@ -178,6 +182,30 @@ The `--logverbose` argument lets you see verbose test logs and k8s logs. go test ./test --logverbose ``` +### Specifying docker repo + +The `--dockerrepo` argument lets you specify a uri of the docker repo where you have +uploaded the test image to using `uploadtestimage.sh`. Defaults to `$KO_DOCKER_REPO` + +```bash +go test ./test --dockerrepo myspecialdockerrepo +``` + +### Specifying tag + +The `--tag` argument lets you specify the version tag for the test images. +```bash +go test ./test --tag v1.0 +``` + +### Specifying image template + +The `--imagetemplate` argument lets you specify a template to generate the +reference to an image from the test. Defaults to `{{.Repository}}/{{.Name}}:{{.Tag}}` +```bash +go test ./test --imagetemplate {{.Repository}}/{{.Name}}:{{.Tag}} +``` + --- Except as otherwise noted, the content of this page is licensed under the