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

inherited_annotations / inherited_labels do not update PVCs / PDBs / secrets with labels/annotations if they were created before applying the config #2642

Closed mightymiracleman closed 3 days ago

mightymiracleman commented 1 month ago

Please, answer some short questions which should help us to understand your problem / question better?

Some general remarks when posting a bug report:

I have tried this with both inherited_annotations and inherited_labels, when creating a new postgresql cluster, it works as expected, the labels / annotations are applied to the pvc / pdb / secrets as expected. However, if there is an existing postgresql cluster (created before the inherited_annotations / inherited_labels were set) the pvc / pdb / secret does not get updated with the labels /annotations. The pooler, db and services seem to get updated with the values.

I should also mention, I tried this with annotations and validated that the values weren't being propagated to pvc/pdb/secrets; I also tried with labels but only validated that values weren't set on the pvc in that case (I'm assuming that the other objects were not tagged in the same manner as annotations).

Is this a bug?

Thank you!

FxKu commented 1 month ago

@hughcapet is currently working on exactly this :smile:

mightymiracleman commented 3 days ago

thanks!