zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.11k stars 949 forks source link

Add secretAnnotations to postgresql cluster manifest to support kubernetes-reflector #2680

Open tawalsh opened 4 days ago

tawalsh commented 4 days ago

Unfortunately at the moment secretAnnotations are not supported in the postgresql cluster manifest. Would it be possible to include them please? I would like to be able to sync my secrets to a different namespace using the emberstack kubernetes-reflector https://github.com/emberstack/kubernetes-reflector, unfortunately this requires the ability to add secretAnnotations.

I can see the need for secretAnnotations is also mentioned in https://github.com/zalando/postgres-operator/issues/1736 which was closed with a different outcome due to the specified use case. One comment in this issue https://github.com/zalando/postgres-operator/issues/1736#issuecomment-2120152492 is from another user with the same use case.