postgres-operator/pkg
Owen Ou 021ab07a23
Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161)
* Introduce `masterServiceAnnotations` & `replicaServiceAnnotations`

Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` to the `Postgresql` CRD.
`masterServiceAnnotations` overrides `serviceAnnotations` for master role if not empty.
`replicaServiceAnnotations` overrides `serviceAnnotations` for replica role if not empty.
Existing definition of `serviceAnnotations` continue to work for backward compatibitlity when neither `masterServiceAnnotations` nor `replicaServiceAnnotations` is defined.

This closes https://github.com/zalando/postgres-operator/issues/1927

* Accumulate service annotations

First, global config, then ServiceAnnotations overriding, then MasterServiceAnnotations and ReplicaServiceAnnotations.

This addresses
https://github.com/zalando/postgres-operator/pull/2161#discussion_r1063558711.

* Update admin doc with master & replica service annotations overrides

Addressed https://github.com/zalando/postgres-operator/pull/2161#discussion_r1064744086

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2023-01-11 13:29:16 +01:00
..
apis Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161) 2023-01-11 13:29:16 +01:00
apiserver Add operator deployment readiness probe (#1874) 2023-01-05 18:29:47 +01:00
cluster Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161) 2023-01-11 13:29:16 +01:00
controller configurable resources for logical backup pod template (#710) 2023-01-05 15:19:36 +01:00
generated Update k8s API for kubectl-pg and regen generated code (#2158) 2023-01-04 11:29:36 +01:00
spec allow in place pw rotation of system users (#1953) 2022-08-18 14:14:31 +02:00
teams Rename roles that are removed from PostgresTeam CRD (#1457) 2021-05-21 15:49:39 +02:00
util configurable resources for logical backup pod template (#710) 2023-01-05 15:19:36 +01:00