argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
16.45k stars 4.97k forks source link

Option to disable writing k8s events #18205

Open tooptoop4 opened 2 weeks ago

tooptoop4 commented 2 weeks ago

Summary

Environment variable/config to stop writing k8s events

Motivation

When i want to stop etcd filling up

Proposal

These parts of the code are writing k8s events which end up being stored in etcd:

https://github.com/argoproj/argo-cd/blob/2162aaf727ead1bcecc992b5f7a2ffa36aa96d04/util/argo/audit_logger.go#L40-L46

https://github.com/argoproj/argo-cd/blob/2162aaf727ead1bcecc992b5f7a2ffa36aa96d04/server/application/application.go#L1901

https://github.com/argoproj/argo-cd/blob/2162aaf727ead1bcecc992b5f7a2ffa36aa96d04/docs/operator-manual/security.md?plain=1#L190

rumstead commented 2 weeks ago

related https://github.com/argoproj/argo-cd/issues/10529

Jack-R-lantern commented 4 days ago

@pasha-codefresh I would like to work on this issue, can you assign me an issue?

pasha-codefresh commented 4 days ago

Thank you @Jack-R-lantern

Jack-R-lantern commented 4 days ago

@tooptoop4 Is it better to implement logging on/off based on the reason for the event? Or should we implement on/off based on the kind?

tooptoop4 commented 3 days ago

i was interested in turning off all