Skip to content
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

Merged
merged 2 commits into from
Mar 18, 2022
Merged

add support for feishu #124

merged 2 commits into from
Mar 18, 2022

Conversation

wanjunlei
Copy link
Collaborator

Signed-off-by: wanjunlei [email protected]

#120

Signed-off-by: wanjunlei <[email protected]>
@@ -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.
Copy link
Member

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.

// Custom keywords of ChatBot
Keywords []string `json:"keywords,omitempty"`

// Secret of ChatBot, you can get it after enabled signature verification of ChatBot.
Copy link
Member

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.

"must specify one of: `user`, `department` or `chatbot`"))
}

if err := validateSelector(r.Spec.Wechat.AlertSelector); err != nil {
Copy link
Member

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

@@ -4,11 +4,13 @@ const (
HTML = "html"
Text = "text"
Markdown = "markdown"
Post = "post"
Copy link
Member

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]>
@benjaminhuo benjaminhuo merged commit c33a396 into kubesphere:master Mar 18, 2022
@wanjunlei wanjunlei deleted the feishu branch March 18, 2022 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants