diff --git a/api/v1/config.go b/api/v1/config.go index 31e9eed..affbe52 100644 --- a/api/v1/config.go +++ b/api/v1/config.go @@ -215,6 +215,8 @@ type NotificationIntegrationWebhookSpec struct { BasicAuth *BasicAuthSpec `json:"basicAuth,omitempty"` // Custom headers to include in requests. CustomHeaders []HeaderSpec `json:"customHeaders,omitempty"` + // Static key-value pairs included as top-level fields in template data. + CustomFields map[string]string `json:"customFields,omitempty"` // Notify of incidents (SLO violation). Incidents bool `json:"incidents,omitempty"` // Notify of deployments. diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 45ae62b..b7c2696 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -1427,6 +1427,13 @@ func (in *NotificationIntegrationWebhookSpec) DeepCopyInto(out *NotificationInte *out = make([]HeaderSpec, len(*in)) copy(*out, *in) } + if in.CustomFields != nil { + in, out := &in.CustomFields, &out.CustomFields + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.Alerts != nil { in, out := &in.Alerts, &out.Alerts *out = new(bool) diff --git a/config/crd/coroot.com_coroots.yaml b/config/crd/coroot.com_coroots.yaml index 2754da3..b8aa6ac 100644 --- a/config/crd/coroot.com_coroots.yaml +++ b/config/crd/coroot.com_coroots.yaml @@ -7108,6 +7108,12 @@ spec: username: type: string type: object + customFields: + additionalProperties: + type: string + description: Static key-value pairs included as top-level + fields in template data. + type: object customHeaders: description: Custom headers to include in requests. items: diff --git a/config/crd/coroot.com_coroots_legacy.yaml b/config/crd/coroot.com_coroots_legacy.yaml index 055542e..3135725 100644 --- a/config/crd/coroot.com_coroots_legacy.yaml +++ b/config/crd/coroot.com_coroots_legacy.yaml @@ -6426,6 +6426,11 @@ spec: username: type: string type: object + customFields: + additionalProperties: + type: string + description: Static key-value pairs included as top-level fields in template data. + type: object customHeaders: description: Custom headers to include in requests. items: