From 9358c01296661a45990991c225e0da279ce2e650 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Sat, 25 Mar 2023 18:28:11 +0300 Subject: [PATCH] feat: webhook payload object field (#126) * feat: update webhook model * feat: payload object field --- apis/executor/v1/webhook_types.go | 2 ++ config/crd/bases/executor.testkube.io_webhooks.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apis/executor/v1/webhook_types.go b/apis/executor/v1/webhook_types.go index 2900aa8f..0f683cf1 100644 --- a/apis/executor/v1/webhook_types.go +++ b/apis/executor/v1/webhook_types.go @@ -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 diff --git a/config/crd/bases/executor.testkube.io_webhooks.yaml b/config/crd/bases/executor.testkube.io_webhooks.yaml index a683b711..d0c47d9a 100644 --- a/config/crd/bases/executor.testkube.io_webhooks.yaml +++ b/config/crd/bases/executor.testkube.io_webhooks.yaml @@ -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