opsgenie / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
1.05k stars 345 forks source link

avoid logging at the error level the errors involving CRD #168

Open angelopoerio opened 2 years ago

angelopoerio commented 2 years ago

When kubernetes-event-exporter is deployed on a cluster with many CRD (custom resource definitions) and its default clusterrole doesn't account for them, it then starts logging a ton of errors and this can cause problems (like saturation of storage if you are ingesting your logs from the kubernetes cluster). I think a better approach is to log errors involving CRD at the debugging level. So you can fix your clusterrole and avoid being overwhelmed by errors.