botkube/pkg
Jirka Kremser 86d2572e56
Add a support for ignoring the events from a namespace that matches regexp (#386)
Fixes issue #295

##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
 - Feature Pull Request

##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
This change allows to ignore whole sets of namespaces using the asterix expansion. It still does the exact match check for all the namespaces (separated by comma in config), but if it contains a `*`, it's actually replaced with `.*` and passed to `regexp.MatchString` to do the job.

PR also contains couple of very simple test cases.

<!---
If you are fixing an existing issue, please include "Fixes #nnn" in your
PR comment; and describe briefly what the change does.
-->

<!--- Please list dependencies added with your change also -->
deps:
`namespace_checker.go` now imports also `regexp`

Fixes #295

It's my very first golang code, so please let me know if it's not idiomatic go 🍪
2020-10-02 16:07:09 +00:00
..
bot Add MS Teams support (#242) 2020-08-11 06:12:09 +00:00
config Add a support for ignoring the events from a namespace that matches regexp (#386) 2020-10-02 16:07:09 +00:00
controller Fix spelling (#385) 2020-10-01 16:52:57 +00:00
events Fix spelling (#385) 2020-10-01 16:52:57 +00:00
execute Added '@Botkube commands list' to show all the supported kubectl cmds (#328) 2020-09-02 04:52:14 +00:00
filterengine Add a support for ignoring the events from a namespace that matches regexp (#386) 2020-10-02 16:07:09 +00:00
log Refactor logging package (#262) (#285) 2020-06-16 04:43:56 +00:00
metrics Add license headers to source files (#266) 2020-04-27 09:20:16 +05:30
notify Add MS Teams support (#242) 2020-08-11 06:12:09 +00:00
utils Fix spelling (#385) 2020-10-01 16:52:57 +00:00