Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

CRDs Reference

CRDs (Custom Resource Definitions) reference. Read more Testkube's CRDs in Testkube Custom Resources section.

Packages

executor.testkube.io/v1

Package v1 contains API Schema definitions for the executor v1 API group.

Resource Types

EventType

Underlying type: string

Appears in:

Executor

Executor is the Schema for the executors API.

Appears in:

FieldDescription
apiVersion stringexecutor.testkube.io/v1
kind stringExecutor
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ExecutorSpec

ExecutorList

ExecutorList contains a list of Executors.

FieldDescription
apiVersion stringexecutor.testkube.io/v1
kind stringExecutorList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Executor array

ExecutorMeta

Executor meta data.

Appears in:

FieldDescription
iconURI stringURI for executor icon
docsURI stringURI for executor docs
tooltips object (keys:string, values:string)executor tooltips

ExecutorSpec

ExecutorSpec defines the desired state of the Executor.

Appears in:

FieldDescription
types string arrayTypes defines what types can be handled by executor e.g. "postman/collection", ":curl/command", etc.
executor_type ExecutorTypeExecutorType one of "rest" for rest openapi based executors or "job" which will be default runners for testkube or "container" for container executors.
uri stringURI for rest-based executors.
image stringImage for kube-job.
args string arrayExecutor binary arguments.
command string arrayExecutor default binary command.
imagePullSecrets LocalObjectReference arrayContainer executor default image pull secrets.
features Feature arrayFeatures list of Possible features which the executor handles.
content_types ScriptContentType arrayContentTypes lists the handled content types.
job_template stringJob template to launch executor.
meta ExecutorMetaMeta data about the executor.

ExecutorType

Underlying type: string

Appears in:

Feature

Underlying type: string

Appears in:

ScriptContentType

Underlying type: string

Appears in:

Webhook

Webhook is the Schema for the webhooks API.

Appears in:

FieldDescription
apiVersion stringexecutor.testkube.io/v1
kind stringWebhook
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec WebhookSpec

WebhookList

WebhookList contains a list of Webhooks.

FieldDescription
apiVersion stringexecutor.testkube.io/v1
kind stringWebhookList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Webhook array

WebhookSpec

WebhookSpec defines the desired state of a Webhook.

Appears in:

FieldDescription
uri stringThe URI is the address where the webhook should be made.
events EventType arrayEvents declares a list of events on which webhook should be called.
selector stringLabels to filter for tests and test suites.
payloadObjectField stringWill load the generated payload for notification inside the object.
payloadTemplate stringGolang based template for notification payload.
headers object (keys:string, values:string)Webhook headers.

tests.testkube.io/v1

Package v1 contains API Schema definitions for the testkube v1 API group.

Resource Types

GitAuthType

Underlying type: string

GitAuthType defines git auth type.

Appears in:

Repository

Repository represents VCS repo, currently we're handling Git only.

Appears in:

FieldDescription
type stringVCS repository type.
uri stringURI of content file or Git directory.
branch stringBranch/tag name for checkout.
commit stringCommit id (sha) for checkout.
path stringIf needed, we can checkout a particular path (dir or file) in case of BIG/mono repositories.
usernameSecret SecretRef
tokenSecret SecretRef
certificateSecret stringGit auth certificate, secret for private repositories.
workingDir stringIf provided, we checkout the whole repository and run the test from this directory.
authType GitAuthTypeAuth type for Git requests.

Script

Script is the Schema for the scripts API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringScript
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ScriptSpec

ScriptList

ScriptList contains a list of scripts.

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringScriptList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Script array

ScriptSpec

ScriptSpec defines the desired state of a script.

Appears in:

FieldDescription
type stringScript type.
name stringScript execution custom name.
params object (keys:string, values:string)Execution params passed to executor.
content stringScript content as string (content depends on the executor).
input-type stringScript content type can be: (1) direct content - created from file, (2) Git repo directory checkout, in case the test is some kind of project or has more than one file.
repository RepositoryRepository details, if they exist.
tags string array

SecretRef

Testkube internal reference for secret storage in Kubernetes secrets.

Appears in:

FieldDescription
namespace stringobject kubernetes namespace
name stringobject name
key stringobject key

Test

Test is the Schema for the tests API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTest
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSpec

TestList

TestList contains a list of Tests.

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Test array

TestSource

TestSource is the the Schema for the testsources API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestSource
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSourceSpec

TestSourceList

TestSourceList contains a list of TestSources.

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestSourceList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestSource array

TestSourceSpec

TestSourceSpec defines the desired state of TestSource.

Appears in:

FieldDescription
type TestSourceType
repository Repositoryrepository of test content
data stringtest content body
uri stringuri of test content

TestSourceType

Underlying type: string

Appears in:

TestSpec

TestSpec defines the desired state of the Test.

Appears in:

FieldDescription
before TestStepSpec arrayBefore steps is a list of scripts which will be sequentially orchestrated.
steps TestStepSpec arraySteps is a list of scripts which will be sequentially orchestrated.
after TestStepSpec arrayAfter steps is a list of scripts which will be sequentially orchestrated.
repeats integer
description string
tags string array

TestStepDelay

Appears in:

FieldDescription
duration integerDuration in ms

TestStepExecute

Appears in:

FieldDescription
namespace string
name string
stopOnFailure boolean

TestStepSpec

TestStepSpec of particular type will have config for possible step types.

Appears in:

FieldDescription
type string
execute TestStepExecute
delay TestStepDelay

TestSuite

TestSuite is the Schema for the testsuites API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestSuite
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSuiteSpec

TestSuiteList

TestSuiteList contains a list of TestSuites.

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestSuiteList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestSuite array

TestSuiteSpec

TestSuiteSpec defines the desired state of a TestSuite.

Appears in:

FieldDescription
before TestSuiteStepSpec arrayBefore steps is a list of tests which will be sequentially orchestrated.
steps TestSuiteStepSpec arraySteps is a list of tests which will be sequentially orchestrated.
after TestSuiteStepSpec arrayAfter steps is a list of tests which will be sequentially orchestrated.
repeats integer
description string
schedule stringSchedule in cron job format for scheduled test execution.
params object (keys:string, values:string)DEPRECATED execution params passed to the executor.
variables object (keys:string, values:Variable)Variables are new params with secrets attached.

TestSuiteStepDelay

TestSuiteStepDelay contains step delay parameters.

Appears in:

FieldDescription
duration integerDuration in ms

TestSuiteStepExecute

TestSuiteStepExecute defines the step to be executed.

Appears in:

FieldDescription
namespace string
name string
stopOnFailure boolean

TestSuiteStepSpec

TestSuiteStepSpec of a particular type will have config for possible step types.

Appears in:

FieldDescription
type string
execute TestSuiteStepExecute
delay TestSuiteStepDelay

TestTrigger

TestTrigger is the Schema for the testtriggers API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestTrigger
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestTriggerSpec

TestTriggerAction

Underlying type: string

TestTriggerAction defines action for test triggers.

Appears in:

TestTriggerCondition

TestTriggerCondition is used for definition of the condition for test triggers.

Appears in:

FieldDescription
type stringTest trigger condition.
reason stringTest trigger condition reason.
ttl integerDuration in seconds in the past from current time when the condition is still valid.

TestTriggerConditionSpec

TestTriggerConditionSpec defines the condition specification for the TestTrigger.

Appears in:

FieldDescription
conditions TestTriggerCondition arrayList of test trigger conditions.
timeout integerDuration in seconds the test trigger waits for conditions, until it is stopped.

TestTriggerEvent

Underlying type: string

TestTriggerEvent defines an event for test triggers.

Appears in:

TestTriggerExecution

Underlying type: string

TestTriggerExecution defines execution for test triggers.

Appears in:

TestTriggerList

TestTriggerList contains a list of TestTriggers.

FieldDescription
apiVersion stringtests.testkube.io/v1
kind stringTestTriggerList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestTrigger array

TestTriggerResource

Underlying type: string

TestTriggerResource defines the resource for test triggers.

Appears in:

TestTriggerSelector

TestTriggerSelector is used for selecting Kubernetes Objects.

Appears in:

FieldDescription
name stringName selector is used to identify a Kubernetes Object based on the metadata name.
namespace stringNamespace of the Kubernetes object.
labelSelector LabelSelectorLabelSelector is used to identify a group of Kubernetes Objects based on their metadata labels.

TestTriggerSpec

TestTriggerSpec defines the desired state of a TestTrigger.

Appears in:

FieldDescription
resource TestTriggerResourceDefines the Resource monitor Event which triggers an Action on certain conditions.
resourceSelector TestTriggerSelectorResourceSelector identifies which Kubernetes Objects should be watched.
event TestTriggerEventDefines the Event on which a Resource an Action should be triggered.
conditionSpec TestTriggerConditionSpecWhich resource conditions should be matched.
action TestTriggerActionAction represents what needs to be executed for a selected Execution.
execution TestTriggerExecutionExecution identifies which test execution an Action should be executed for.
testSelector TestTriggerSelectorTestSelector identifies on which Testkube Kubernetes Objects an Action should be taken.
delay DurationDelay is a duration string which specifies how long the test should be delayed after a trigger is matched.

Variable

Appears in:

FieldDescription
type stringvariable type
name stringvariable name
value stringvariable string value
valueFrom EnvVarSourceLoad variable from var source.

tests.testkube.io/v2

Package v2 contains API Schema definitions for the Testkube v2 API group.

Resource Types

Repository

Repository represents the VCS repo, currently we're handling Git only.

Appears in:

FieldDescription
type stringVCS repository type.
uri stringURI of content file or Git directory.
branch stringBranch/tag name for checkout.
commit stringCommit ID (sha) for checkout.
path stringIf needed, we can checkout a particular path (dir or file) in case of BIG/mono repositories.
username stringGit auth username for private repositories.
token stringGit auth token for private repositories.

RunningContext

Running context for test or test suite execution.

Appears in:

FieldDescription
type RunningContextTypeOne of possible context types.
context stringContext value depending from its type.

RunningContextType

Underlying type: string

Appears in:

Script

Script is the Schema for the scripts API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringScript
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ScriptSpec

ScriptContent

Appears in:

FieldDescription
type stringscript type
repository Repositoryrepository of script content
data stringscript content body
uri stringURI of script content

ScriptList

ScriptList contains a list of Scripts.

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringScriptList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Script array

ScriptSpec

ScriptSpec defines the desired state of a Script.

Appears in:

FieldDescription
type stringscript type
name stringscript execution custom name
params object (keys:string, values:string)execution params passed to executor
content ScriptContentscript content object
tags string arrayscript tags

Test

Test is the Schema for the tests API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringTest
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSpec

TestContent

TestContent defines the test content.

Appears in:

FieldDescription
type stringtest type
repository Repositoryrepository of test content
data stringtest content body
uri stringuri of test content

TestList

TestList contains a list of Tests.

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringTestList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Test array

TestSpec

TestSpec defines the desired state of a Test.

Appears in:

FieldDescription
type stringtest type
name stringtest execution custom name
params object (keys:string, values:string)DEPRECATED execution params passed to executor.
variables object (keys:string, values:Variable)Variables are new params with secrets attached.
content TestContenttest content object
schedule stringSchedule in cron job format for scheduled test execution.
executorArgs string arrayAdditional executor binary arguments.

TestSuite

TestSuite is the Schema for the testsuites API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringTestSuite
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSuiteSpec

TestSuiteExecutionCore

The test suite execution core.

Appears in:

FieldDescription
id stringexecution ID
startTime Timetest suite execution start time
endTime Timetest suite execution end time

TestSuiteExecutionRequest

The test suite execution request body.

Appears in:

FieldDescription
name stringThe test execution custom name.
namespace stringThe test Kubernetes namespace (\"testkube\" when not set).
variables object (keys:string, values:Variable)
secretUUID stringsecret UUID
labels object (keys:string, values:string)test suite labels
executionLabels object (keys:string, values:string)execution labels
sync booleanWhether to start execution sync or async.
httpProxy stringHTTP proxy for executor containers
httpsProxy stringHTTPS proxy for executor containers
timeout integerTimeout for test suite execution.
runningContext RunningContext
cronJobTemplate stringCron job template extensions.

TestSuiteList

TestSuiteList contains a list of TestSuites.

FieldDescription
apiVersion stringtests.testkube.io/v2
kind stringTestSuiteList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestSuite array

TestSuiteSpec

TestSuiteSpec defines the desired state of a TestSuite.

Appears in:

FieldDescription
before TestSuiteStepSpec arrayBefore steps is a list of tests which will be sequentially orchestrated.
steps TestSuiteStepSpec arraySteps is a list of tests which will be sequentially orchestrated.
after TestSuiteStepSpec arrayAfter steps is a list of tests which will be sequentially orchestrated.
repeats integer
description string
schedule stringSchedule in cron job format for scheduled test execution.
executionRequest TestSuiteExecutionRequest

TestSuiteStepDelay

TestSuiteStepDelay contains step delay parameters.

Appears in:

FieldDescription
duration integerDuration in ms

TestSuiteStepExecute

TestSuiteStepExecute defines the step to be executed.

Appears in:

FieldDescription
namespace string
name string
stopOnFailure boolean

TestSuiteStepSpec

TestSuiteStepSpec for a particular type will have the config for possible step types.

Appears in:

FieldDescription
type TestSuiteStepType
execute TestSuiteStepExecute
delay TestSuiteStepDelay

TestSuiteStepType

Underlying type: string

TestSuiteStepType defines different types of test suite steps.

Appears in:

Variable

Appears in:

FieldDescription
type stringvariable type
name stringvariable name
value stringvariable string value
valueFrom EnvVarSourceor load it from var source

tests.testkube.io/v3

Package v3 contains API Schema definitions for the tests v3 API group.

Resource Types

ArgsModeType

Underlying type: string

ArgsModeType defines the args mode type.

Appears in:

ArtifactRequest

Artifact request body with test artifacts.

Appears in:

FieldDescription
storageClassName stringThe artifact storage class name for the container executor.
volumeMountPath stringThe artifact volume mount path for the container executor.
dirs string arrayThe artifact directories for scraping.

EnvReference

Reference to env resource.

Appears in:

FieldDescription
reference LocalObjectReference
mount booleanWhether we should mount a resource.
mountPath stringWhere we should mount resource.
mapToVariables booleanWhether we should map to variables from a resource.

ExecutionCore

The test execution core.

Appears in:

FieldDescription
id stringexecution id
number integerexecution number
startTime Timetest start time
endTime Timetest end time

ExecutionRequest

The test execution request body.

Appears in:

FieldDescription
name stringThe test execution custom name.
testSuiteName stringThe unique test suite name (CRD Test suite name), if it's run as a part of a test suite.
number integerThe test execution number.
executionLabels object (keys:string, values:string)The test execution labels.
namespace stringThe test Kubernetes namespace (\"testkube\" when not set).
variablesFile stringVariables file content - needs to be in the format for a particular executor (e.g. postman envs file).
isVariablesFileUploaded boolean
variables object (keys:string, values:Variable)
testSecretUUID stringtest secret UUID
testSuiteSecretUUID stringThe test suite secret uuid, if it's run as a part of a test suite.
args string arrayAdditional executor binary arguments.
argsMode ArgsModeTypeUsage mode for arguments.
command string arrayExecutor binary command.
image stringContainer executor image.
imagePullSecrets LocalObjectReference arrayContainer executor image pull secrets.
envs object (keys:string, values:string)Environment variables passed to executor. Deprecated: use Basic Variables instead.
secretEnvs object (keys:string, values:string)Execution variables passed to executor from secrets. Deprecated: use Secret Variables instead.
sync booleanWhether to start execution sync or async.
httpProxy stringHTTP proxy for executor containers.
httpsProxy stringHTTPS proxy for executor containers.
negativeTest booleanA negative test will fail the execution if it is a success and it will succeed if it is a failure.
activeDeadlineSeconds integerOptional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.
artifactRequest ArtifactRequest
jobTemplate stringjob template extensions
cronJobTemplate stringcron job template extensions
preRunScript stringThe script to run before test execution.
scraperTemplate stringscraper template extensions
envConfigMaps EnvReference arrayconfig map references
envSecrets EnvReference arraysecret references
runningContext RunningContext

GitAuthType

Underlying type: string

GitAuthType defines the Git auth type.

Appears in:

Repository

Repository represents VCS repo, currently we're handling Git only.

Appears in:

FieldDescription
type stringVCS repository type
uri stringURI of content file or Git directory
branch stringbranch/tag name for checkout
commit stringcommit id (sha) for checkout
path stringIf needed, we can checkout a particular path (dir or file) in the case of BIG/mono repositories.
usernameSecret SecretRef
tokenSecret SecretRef
certificateSecret stringGit auth certificate secret for private repositories
workingDir stringIf provided, we check out the whole repository and run the test from this directory.
authType GitAuthTypeauth type for git requests

RunningContext

The Running context for test or test suite execution.

Appears in:

FieldDescription
type RunningContextTypeOne of possible context types
context stringContext value depending from its type

RunningContextType

Underlying type: string

Appears in:

SecretRef

Testkube internal reference for secret storage in Kubernetes secrets.

Appears in:

FieldDescription
namespace stringobject kubernetes namespace
name stringobject name
key stringobject key

Test

Test is the Schema for the tests API.

Appears in:

FieldDescription
apiVersion stringtests.testkube.io/v3
kind stringTest
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSpec

TestContent

TestContent defines test content.

Appears in:

FieldDescription
type TestContentTypetest type
repository Repositoryrepository of test content
data stringtest content body
uri stringuri of test content

TestContentType

Underlying type: string

Appears in:

TestList

TestList contains a list of the Test.

FieldDescription
apiVersion stringtests.testkube.io/v3
kind stringTestList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Test array

TestSpec

TestSpec defines the the desired state of a Test.

Appears in:

FieldDescription
type stringtest type
name stringtest name
content TestContenttest content object
source stringreference to test source resource
schedule stringschedule in cron job format for scheduled test execution
executionRequest ExecutionRequest
uploads string arrayfiles to be used from minio uploads

Variable

Appears in:

FieldDescription
type stringvariable type
name stringvariable name
value stringvariable string value
valueFrom EnvVarSourceor load it from var source