Skip to content

Commit 43be4e4

Browse files
authored
Merge pull request #41 from coroot/webhook_custom_fields
add customFields to webhook CRD spec
2 parents f939674 + 54498a4 commit 43be4e4

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

api/v1/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ type NotificationIntegrationWebhookSpec struct {
215215
BasicAuth *BasicAuthSpec `json:"basicAuth,omitempty"`
216216
// Custom headers to include in requests.
217217
CustomHeaders []HeaderSpec `json:"customHeaders,omitempty"`
218+
// Static key-value pairs included as top-level fields in template data.
219+
CustomFields map[string]string `json:"customFields,omitempty"`
218220
// Notify of incidents (SLO violation).
219221
Incidents bool `json:"incidents,omitempty"`
220222
// Notify of deployments.

api/v1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/coroot.com_coroots.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7108,6 +7108,12 @@ spec:
71087108
username:
71097109
type: string
71107110
type: object
7111+
customFields:
7112+
additionalProperties:
7113+
type: string
7114+
description: Static key-value pairs included as top-level
7115+
fields in template data.
7116+
type: object
71117117
customHeaders:
71127118
description: Custom headers to include in requests.
71137119
items:

config/crd/coroot.com_coroots_legacy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6426,6 +6426,11 @@ spec:
64266426
username:
64276427
type: string
64286428
type: object
6429+
customFields:
6430+
additionalProperties:
6431+
type: string
6432+
description: Static key-value pairs included as top-level fields in template data.
6433+
type: object
64296434
customHeaders:
64306435
description: Custom headers to include in requests.
64316436
items:

0 commit comments

Comments
 (0)