This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 8f03327d [YUNIKORN-2112] Add install cluster section to e2e README
(#720)
8f03327d is described below
commit 8f03327da4859f6c4c2712b388ea792f83b010e8
Author: DouPache <[email protected]>
AuthorDate: Tue Nov 7 13:18:57 2023 -0600
[YUNIKORN-2112] Add install cluster section to e2e README (#720)
Closes: #720
Signed-off-by: Craig Condit <[email protected]>
---
test/e2e/README.md | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/test/e2e/README.md b/test/e2e/README.md
index 28ce1012..eec52dbe 100644
--- a/test/e2e/README.md
+++ b/test/e2e/README.md
@@ -45,16 +45,22 @@ OR follow this doc for deploying go
https://golang.org/doc/install
## Launching Tests
### Trigger through CLI
+* Begin by installing a new cluster dedicated to testing, such as one named
'yktest'
+```shell
+$ ./scripts/run-e2e-tests.sh -a install -n yktest -v kindest/node:v1.28.0
+```
+
* Launching CI tests is as simple as below.
```shell
-$ kubectl config use-context <<cluster-under-test-context>>
+# We need to add a 'kind' prefix to the argument of the run-e2e-tests.sh -n
command.
+
+$ kubectl config use-context kind-yktest
$ ginkgo -r -v ci -timeout=2h -- -yk-namespace "yunikorn" -kube-config
"$HOME/.kube/config"
```
* Launching all the tests can be done as.
```shell
$ ginkgo -r -v -timeout=2h -- -yk-namespace "yunikorn" -kube-config
"$HOME/.kube/config"
-
```
* Launching all the tests in specified e2e folder.
@@ -72,3 +78,8 @@ $ ginkgo run -r -v --focus
"Verify_maxapplications_with_a_specific_group_limit"
-- -yk-namespace "yunikorn" \
-kube-config "$HOME/.kube/config"
```
+* Delete the cluster after we finish testing (this step is optional).
+
+```shell
+$ ./scripts/run-e2e-tests.sh -a cleanup -n yktest
+```
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]