Skip to content

Commit

Permalink
feat: webhook payload object field (#126)
Browse files Browse the repository at this point in the history
* feat: update webhook model

* feat: payload object field
  • Loading branch information
vsukhin authored Mar 25, 2023
1 parent b7c9baa commit 9358c01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/executor/v1/webhook_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ type WebhookSpec struct {
Events []string `json:"events,omitempty"`
// Labels to filter for tests and test suites
Selector string `json:"selector,omitempty"`
// will load the generated payload for notification inside the object
PayloadObjectField string `json:"payloadObjectField,omitempty"`
}

// WebhookStatus defines the observed state of Webhook
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/executor.testkube.io_webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
items:
type: string
type: array
payloadObjectField:
description: will load the generated payload for notification inside
the object
type: string
selector:
description: Labels to filter for tests and test suites
type: string
Expand Down

0 comments on commit 9358c01

Please sign in to comment.