Skip to search

TestTrigger

tests.testkube.io / v1

apiVersion: tests.testkube.io/v1 kind: TestTrigger metadata: name: example
View raw schema
apiVersion string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata object
spec object
TestTriggerSpec defines the desired state of TestTrigger
action string required
Action represents what needs to be executed for selected Execution
enum: run
concurrencyPolicy string
ConcurrencyPolicy defines concurrency policy for selected Execution
enum: allow, forbid, replace
conditionSpec object
What resource conditions should be matched
conditions []object
list of test trigger conditions
reason string
test trigger condition reason
status string required
TestTriggerConditionStatuses defines condition statuses for test triggers
enum: True, False, Unknown
ttl integer
duration in seconds in the past from current time when the condition is still valid
format: int32
type string required
test trigger condition
delay integer
duration in seconds the test trigger waits between condition check
format: int32
timeout integer
duration in seconds the test trigger waits for conditions, until its stopped
format: int32
delay string
Delay is a duration string which specifies how long should the test be delayed after a trigger is matched
format: duration
disabled boolean
whether test trigger is disabled
event string required
On which Event for a Resource should an Action be triggered
enum: created, modified, deleted, deployment-scale-update, deployment-image-update, deployment-env-update, deployment-containe... created, modified, deleted, deployment-scale-update, deployment-image-update, deployment-env-update, deployment-containers-modified, event-start-test, event-end-test-success, event-end-test-failed, event-end-test-aborted, event-end-test-timeout, event-start-testsuite, event-end-testsuite-success, event-end-testsuite-failed, event-end-testsuite-aborted, event-end-testsuite-timeout, event-queue-testworkflow, event-start-testworkflow, event-end-testworkflow-success, event-end-testworkflow-failed, event-end-testworkflow-aborted, event-created, event-updated, event-deleted
execution string required
Execution identifies for which test execution should an Action be executed
enum: test, testsuite, testworkflow
probeSpec object
What resource probes should be matched
delay integer
duration in seconds the test trigger waits between probes
format: int32
probes []object
list of test trigger probes
headers object
test trigger condition probe headers to submit
host string
test trigger condition probe host, default is pod ip or service name
path string
test trigger condition probe path to check, default is /
port integer
test trigger condition probe port to connect
format: int32
scheme string
test trigger condition probe scheme to connect to host, default is http
timeout integer
duration in seconds the test trigger waits for probes, until its stopped
format: int32
resource string required
For which Resource do we monitor Event which triggers an Action on certain conditions
enum: pod, deployment, statefulset, daemonset, service, ingress, event, configmap
resourceSelector object required
ResourceSelector identifies which Kubernetes Objects should be watched
labelSelector object
LabelSelector is used to identify a group of Kubernetes Objects based on their metadata labels
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
matchLabels object
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
name string
Name selector is used to identify a Kubernetes Object based on the metadata name
nameRegex string
kubernetes resource name regex
namespace string
Namespace of the Kubernetes object
testSelector object required
TestSelector identifies on which Testkube Kubernetes Objects an Action should be taken
labelSelector object
LabelSelector is used to identify a group of Kubernetes Objects based on their metadata labels
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
matchLabels object
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
name string
Name selector is used to identify a Kubernetes Object based on the metadata name
nameRegex string
kubernetes resource name regex
namespace string
Namespace of the Kubernetes object
status object
TestTriggerStatus defines the observed state of TestTrigger

No matches. Try .spec.action for an exact path