Skip to content

Commit bf6d36f

Browse files
committed
feat: test trigger types
1 parent 6f94d24 commit bf6d36f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

config/crd/bases/executor.testkube.io_executors.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ spec:
6262
description: ExecutorType one of "rest" for rest openapi based executors
6363
or "job" which will be default runners for testkube or "container"
6464
for container executors
65+
enum:
66+
- job
67+
- conrainer
6568
type: string
6669
features:
6770
description: Features list of possible features which executor handles

config/crd/bases/tests.testkube.io_testtriggers.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ spec:
5151
action:
5252
description: Action represents what needs to be executed for selected
5353
Execution
54+
enum:
55+
- run
5456
type: string
5557
conditionSpec:
5658
description: What resource conditions should be matched
@@ -93,14 +95,34 @@ spec:
9395
type: string
9496
event:
9597
description: On which Event for a Resource should an Action be triggered
98+
enum:
99+
- created
100+
- modified
101+
- deleted
102+
- deployment-scale-update
103+
- deployment-image-update
104+
- deployment-env-update
105+
- deployment-containers-modified
96106
type: string
97107
execution:
98108
description: Execution identifies for which test execution should
99109
an Action be executed
110+
enum:
111+
- test
112+
- testsuite
100113
type: string
101114
resource:
102115
description: For which Resource do we monitor Event which triggers
103116
an Action on certain conditions
117+
enum:
118+
- pod
119+
- deployment
120+
- statefulset
121+
- daemonset
122+
- service
123+
- ingress
124+
- event
125+
- configmap
104126
type: string
105127
resourceSelector:
106128
description: ResourceSelector identifies which Kubernetes Objects

0 commit comments

Comments
 (0)