Skip to content

Commit 9358c01

Browse files
authored
feat: webhook payload object field (#126)
* feat: update webhook model * feat: payload object field
1 parent b7c9baa commit 9358c01

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

apis/executor/v1/webhook_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ type WebhookSpec struct {
3434
Events []string `json:"events,omitempty"`
3535
// Labels to filter for tests and test suites
3636
Selector string `json:"selector,omitempty"`
37+
// will load the generated payload for notification inside the object
38+
PayloadObjectField string `json:"payloadObjectField,omitempty"`
3739
}
3840

3941
// WebhookStatus defines the observed state of Webhook

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

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
items:
4242
type: string
4343
type: array
44+
payloadObjectField:
45+
description: will load the generated payload for notification inside
46+
the object
47+
type: string
4448
selector:
4549
description: Labels to filter for tests and test suites
4650
type: string

0 commit comments

Comments
 (0)