dingtalk sink add exclude_reasons support #233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
PR类型是什么?
/kind api-change
What this PR does / why we need it:
这个PR解决了什么问题:
使用钉钉发送warning级别事件消息, 发现很多我们并不关注的事件, 比如 SystemOOM. 这是节点某个pod内存被限制了. 我们希望忽略告警该warning级别事件.
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带来的破坏性变更:
Test/Final result:
测试/最终运行结果:
本地通过打印日志,连接kubernetes集群. 进行测试. 符合预期.