From 7595ee74482413f12d3f0d0614cf70ce8f9cd17a Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Thu, 8 Jun 2023 14:06:55 +0200 Subject: [PATCH 1/3] Doc: refine schema for content.type Extracted from https://github.com/kubeshop/testkube/blob/cca3c13629078891f269f691e1050ae5adb99d5a/docs/docs/test-types/prebuilt-executor.md?plain=1#L60-L65 --- .../templates/tests.testkube.io_tests.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml index 3e50f5c3b..c217e6676 100644 --- a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml +++ b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml @@ -428,7 +428,12 @@ spec: type: string type: object type: - description: test type + description: | + type of sources a runner can get data from. + string: String content (e.g. Postman JSON file). + file-uri: content stored on the webserver. + git-file: the file stored in the Git repo in the given path. + git-dir: the entire git repo or git subdirectory (Testkube does a spatial checkout to limit traffic in the case of monorepos). enum: - string - file-uri From 12313d90a70804887a7c456dbb9210112fb16a9f Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Thu, 8 Jun 2023 16:21:16 +0200 Subject: [PATCH 2/3] Doc: refine schema for content.type Extracted from https://github.com/kubeshop/testkube/blob/cca3c13629078891f269f691e1050ae5adb99d5a/docs/docs/test-types/prebuilt-executor.md?plain=1#L60-L65 --- .../testkube-operator/templates/tests.testkube.io_tests.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml index c217e6676..37ab45ba9 100644 --- a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml +++ b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml @@ -432,8 +432,9 @@ spec: type of sources a runner can get data from. string: String content (e.g. Postman JSON file). file-uri: content stored on the webserver. - git-file: the file stored in the Git repo in the given path. - git-dir: the entire git repo or git subdirectory (Testkube does a spatial checkout to limit traffic in the case of monorepos). + git-file: the file stored in the Git repo in the given repository.path field. + git-dir: the entire git repo or git subdirectory depending on the repository.path field (Testkube does a spatial checkout to limit traffic in the case of monorepos) + git: automatically provisions either a file, directory or whole git repository depending on the repository.path field enum: - string - file-uri From a549ded7013befcc06c58770655eaa5261b7ac66 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Thu, 8 Jun 2023 16:30:00 +0200 Subject: [PATCH 3/3] Doc: refine schema for content.type Refine git wording https://git-scm.com/docs/git-clone > --depth > Create a shallow clone with a history truncated to the specified number of commits. https://git-scm.com/docs/git-sparse-checkout > This command is used to create sparse checkouts, which change the working tree from having all tracked files present to only having a subset of those files --- charts/testkube-operator/templates/tests.testkube.io_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml index 37ab45ba9..dd71e0345 100644 --- a/charts/testkube-operator/templates/tests.testkube.io_tests.yaml +++ b/charts/testkube-operator/templates/tests.testkube.io_tests.yaml @@ -433,7 +433,7 @@ spec: string: String content (e.g. Postman JSON file). file-uri: content stored on the webserver. git-file: the file stored in the Git repo in the given repository.path field. - git-dir: the entire git repo or git subdirectory depending on the repository.path field (Testkube does a spatial checkout to limit traffic in the case of monorepos) + git-dir: the entire git repo or git subdirectory depending on the repository.path field (Testkube does a shadow clone and sparse checkout to limit IOs in the case of monorepos) git: automatically provisions either a file, directory or whole git repository depending on the repository.path field enum: - string