-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for feishu #124
Conversation
Signed-off-by: wanjunlei <[email protected]>
pkg/apis/v2beta2/receiver_types.go
Outdated
@@ -244,6 +244,41 @@ type PushoverReceiver struct { | |||
TmplText *ConfigmapKeySelector `json:"tmplText,omitempty"` | |||
} | |||
|
|||
// FeishuChatBot is the configuration of ChatBot | |||
type FeishuChatBot struct { | |||
// The webhook of ChatBot which the message will send to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// The webhook of ChatBot which the message will send to.
=>
// The webhook of the ChatBot to which the message will be sent.
pkg/apis/v2beta2/receiver_types.go
Outdated
// Custom keywords of ChatBot | ||
Keywords []string `json:"keywords,omitempty"` | ||
|
||
// Secret of ChatBot, you can get it after enabled signature verification of ChatBot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=>
// Secret of ChatBot, you can get it after enabling signature verification of ChatBot.
pkg/apis/v2beta2/receiver_webhook.go
Outdated
"must specify one of: `user`, `department` or `chatbot`")) | ||
} | ||
|
||
if err := validateSelector(r.Spec.Wechat.AlertSelector); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be Wechat.AlertSelector
for feishu
pkg/constants/constants.go
Outdated
@@ -4,11 +4,13 @@ const ( | |||
HTML = "html" | |||
Text = "text" | |||
Markdown = "markdown" | |||
Post = "post" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add a comment here to explain what is post format, maybe with the link below
https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json#45e0953e
Signed-off-by: wanjunlei <[email protected]>
Signed-off-by: wanjunlei [email protected]
#120