I'm a go newbie and trying to get the above done . what is the simplest way to go about it ? What i'm looking for is:
1- A watcher for deployments
2- On update/delete/add deployment a sidecar will be attached (patch the deployment)
3- Something to control feedback from that sidecar.
Any reference would be helpful
I would advise you look at webhooks instead so you don't reinvent the wheel. Webhooks can be used to intercept resources (including deployments) update/deletion/creation requests to the API server. Those requests can then be modified, or rejected depending on your goals.