-
Notifications
You must be signed in to change notification settings - Fork 290
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
Ignore namespaces using regex #295
Labels
Comments
This sounds good. We should definitely have this |
You could put \s* in between every character in your search string so if you were looking for cat you would use c\s* a\s* t\s* s\s* s. |
@God-father1 would you like to give a try? |
Sure, Will you please guide me where to look for the code to be changed?
|
I am also looking into this.. |
jkremser
added a commit
to jkremser/botkube
that referenced
this issue
Oct 1, 2020
… regular expression (kubeshop#295)
jkremser
added a commit
to jkremser/botkube
that referenced
this issue
Oct 1, 2020
… regular expression (kubeshop#295)
jkremser
added a commit
to jkremser/botkube
that referenced
this issue
Oct 1, 2020
… regular expression (kubeshop#295)
jkremser
added a commit
to jkremser/botkube
that referenced
this issue
Oct 2, 2020
… regular expression (kubeshop#295)
mergify bot
pushed a commit
that referenced
this issue
Oct 2, 2020
…egexp (#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 🍪
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe.
I want to ignore multiple namespaces using a wildcard like:
project-experimental-*
Describe the solution you'd like
It would be awesome if we can specify labels or regex to ignore short-lived namespaces.
Describe alternatives you've considered
None.
Additional context
I try using
project-experimental
hoping thatstring.Contains
will match but it didn't.The text was updated successfully, but these errors were encountered: