Skip to content
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

[🙏] Make workload_events value in default policy file configurable #853

Open
JorritSalverda opened this issue Aug 17, 2021 · 2 comments
Assignees

Comments

@JorritSalverda
Copy link

Describe the user need

I want kubernetes-monitor to auto-import and auto-delete my workloads. Unfortunately the workload_events value is hardcoded at https://github.com/snyk/kubernetes-monitor/blob/v1.66.2/snyk-monitor/templates/configmap.yaml#L34. A Helm value to set this - just like there is for policyOrgs - would be very helpful here.

@ivanstanev
Copy link
Contributor

Hey @JorritSalverda

You can create your own ConfigMap with the custom rules that you need, then when installing with Helm you can point to your ConfigMap with --set workloadPoliciesMap=my-custom-rules

policyOrgs was exposed for quickly setting up using the default rules, but for more advanced cases we recommend using your own ConfigMap

Let me know if that solves your needs!

@JorritSalverda
Copy link
Author

@ivanstanev If you can provide an optional configmap in the configmap.yaml file configured via the Helm chart values that would work as well. Otherwise we have to create a configmap in advance either manually, or through an additional Helm chart.

Or perhaps set the default policy file at https://github.com/snyk/kubernetes-monitor/blob/staging/snyk-monitor/templates/configmap.yaml#L29 completely from the values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants