From 08b80696475072c2ee8d8a516ce0c57cbf0d7d5a Mon Sep 17 00:00:00 2001 From: wanjunlei <53003665+wanjunlei@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:36:27 +0800 Subject: [PATCH] support route notifications to specified users (#5206) Signed-off-by: wanjunlei Signed-off-by: wanjunlei --- .../api/notification/v2beta2/router_types.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/staging/src/kubesphere.io/api/notification/v2beta2/router_types.go b/staging/src/kubesphere.io/api/notification/v2beta2/router_types.go index aa46ee99a..7a2cfddc4 100644 --- a/staging/src/kubesphere.io/api/notification/v2beta2/router_types.go +++ b/staging/src/kubesphere.io/api/notification/v2beta2/router_types.go @@ -20,11 +20,18 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +type Channel struct { + Tenant string `json:"tenant"` + // Receiver type, known values are dingtalk, email, feishu, slack, sms, pushover, webhook, wechat. + Type []string `json:"type,omitempty"` +} + type ReceiverSelector struct { Name []string `json:"name,omitempty"` RegexName string `json:"regexName,omitempty"` Selector *metav1.LabelSelector `json:"selector,omitempty"` - // Receiver type, known values are dingtalk, email, slack, sms, pushover, webhook, wechat. + Channels []Channel `json:"channels,omitempty"` + // Receiver type, known values are dingtalk, email, feishu, slack, sms, pushover, webhook, wechat. Type string `json:"type,omitempty"` }