postgres-operator/pkg/apis/acid.zalan.do/v1
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
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161) 2023-01-11 13:29:16 +01:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
operator_configuration_type.go configurable resources for logical backup pod template (#710) 2023-01-05 15:19:36 +01:00
postgres_team_type.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
postgresql_type.go Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161) 2023-01-11 13:29:16 +01:00
register.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
util.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
util_test.go enable operator support for pg15 and drop support for 9.5 and 9.6 (#2140) 2022-12-15 12:17:27 +01:00
zz_generated.deepcopy.go Introduce `masterServiceAnnotations` & `replicaServiceAnnotations` (#2161) 2023-01-11 13:29:16 +01:00