RoadieHQ / kubewise

Get Helm notifications in your team chat
Apache License 2.0
59 stars 6 forks source link

Exclude namespace pattern #46

Open hd-deman opened 4 years ago

hd-deman commented 4 years ago

It will be extremely useful to have option to exclude watching namespace by regex pattern.

dtuite commented 4 years ago

Agreed. I like this idea.

Any thoughts on the interface? Comma separated list passed in as a helm value?

Happy to accept a PR for this.

hd-deman commented 4 years ago

It must be something flexible like regex. --exclude-namespaces="/^dev-.*/" The comma-separated list does not cover auto-generated namespaces. Imaginate, if we have multi-staging environment based on ticket number or developer name. dev-1, dev-2, dev-3 etc

Or we can support both: it expects regex if the value starts and ends with / else comma-separated list.