golang在kubernetes上创建监视程序/控制器,以将sidecar容器附加到具有PVC附件的任何pod /部署中

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.