snyk / kubernetes-monitor

Use Snyk to find and fix vulnerabilities in your Kubernetes workloads
https://docs.snyk.io/products/snyk-container/image-scanning-library/kubernetes-workload-and-image-scanning/kubernetes-integration-overview
Other
84 stars 73 forks source link

[🙏] Selectively add namespaces instead of excludedNamespaces #1445

Open lukibahr opened 8 months ago

lukibahr commented 8 months ago

Describe the user need Instead of excluding namespaces via the excludedNamespaces: array, we would like to selectively add namespaces to a list, or choose namespaces by using label selectors, e.g.:

# Add selected namespaces
includedNamespaces:
  matchLabels: 
    key: value
#or 
includedNamespaces: 
  - namespaceA
  - namespaceB

Describe expected behaviour

snyk-monitor uses the exact list or selection of namespaces provided in the includedNamespaces field.

Additional context

Probably, the changes in the helm chart will not be that much, however, I don't know, if there are code-changes to be done.

johnjelinek commented 1 month ago

can we get a regex for this?