postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

Add annotations to operator deployment

Open kanor1306 opened this issue 1 year ago • 1 comments

Hi!

This PR adds annotations configuration for the operator Deployment resource.

Main use case is that when using an externally rotating secret (i.e. Managed secrets in AWS RDS that rotate every 7 days) there is the need to make the operator read the new secret. For this I use the Reloader, which requires you to annotate the deployment with the secret that it should be monitoring to decide if the deployment needs to be restarted.

I have followed the same pattern as podAnnotations for consistentcy.

I am not bumping any version, but let me know if I should bump the chart version or it is something that you do when releasing.

Thanks for all the good work in this operator!

kanor1306 avatar Jan 15 '24 14:01 kanor1306

+1 request for merging this

Demmyart avatar Jun 19 '24 11:06 Demmyart