Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Liu Ming <[email protected]>
  • Loading branch information
liuming-dev committed Jul 31, 2020
1 parent bf9b7d2 commit f68a880
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/en/mysql-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use kube_event;
create table kube_event
(
id bigint(20) not null auto_increment primary key comment 'event primary key',
name varchar(64) not null default '' comment 'evenet name',
namespace varchar(64) not null default '' comment 'evenet namespace',
name varchar(64) not null default '' comment 'event name',
namespace varchar(64) not null default '' comment 'event namespace',
event_id varchar(64) not null default '' comment 'event_id',
type varchar(64) not null default '' comment 'event type Warning or Normal',
reason varchar(64) not null default '' comment 'event reason',
Expand Down
2 changes: 1 addition & 1 deletion manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (rm *realManager) Stop() {

func (rm *realManager) Housekeep() {
for {
// Try to infovke housekeep at fixed time.
// Try to invoke housekeep at fixed time.
now := time.Now()
start := now.Truncate(rm.frequency)
end := start.Add(rm.frequency)
Expand Down
4 changes: 2 additions & 2 deletions sinks/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
NORMAL int = 1
DEFAULT_MSG_TYPE = "text"
CONTENT_TYPE_JSON = "application/json"
LABE_TEMPLATE = "%s\n"
LABEL_TEMPLATE = "%s\n"
//发送消息使用的url
SEND_MSG_URL = `https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=`
//获取token使用的url
Expand Down Expand Up @@ -222,7 +222,7 @@ func createMsgFromEvent(d *WechatSink, event *v1.Event) *WechatMsg {
template := MSG_TEMPLATE
if len(d.Labels) > 0 {
for _, label := range d.Labels {
template = fmt.Sprintf(LABE_TEMPLATE, label) + template
template = fmt.Sprintf(LABEL_TEMPLATE, label) + template
}
}

Expand Down

0 comments on commit f68a880

Please sign in to comment.