AliyunContainerService / kube-eventer

kube-eventer emit kubernetes events to sinks
Apache License 2.0
1k stars 275 forks source link

dingtalk sink add exclude_reasons support #233

Open llaoj opened 2 years ago

llaoj commented 2 years ago

What type of PR is this? PR类型是什么?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind api-change

/kind bug /kind cleanup /kind deprecation /kind design /kind documentation

What this PR does / why we need it: 这个PR解决了什么问题:

使用钉钉发送warning级别事件消息, 发现很多我们并不关注的事件, 比如 SystemOOM. 这是节点某个pod内存被限制了. 我们希望忽略告警该warning级别事件. IMG_4803

exclude_reasons - Ignore events for a specific reason of a specific namespace, format: [NAMESPACE/]REASON, NAMESPACE can be empty for all namespaces. (default empty,use commas to separate multi items, e.g., SystemOOM,test/Unhealthy)[Optional]

Which issue(s) this PR fixes: PR相关联issue:

Fixes #NONE

Does this PR introduce a breaking change?: PR带来的破坏性变更:

NONE

Test/Final result: 测试/最终运行结果:

本地通过打印日志,连接kubernetes集群. 进行测试. 符合预期. image

image