This PR enhances operator to support Patroni 4.x while retaining compatibility with existing clusters by making the new role label configurable. The role terminology has changed from "master" to "primary". By default, Spilo will use the same value as before. But to allow flexibility in label configurations, we need to ensure that the role label are configurable.
This is achieved by adding configurable parameters:
pod_leader_label_value: default is set to "master"
pod_standby_leader_label_value: default is set to "standby_leader"
New Spilo with Patroni 4.x integration: https://github.com/zalando/spilo/pull/1050
This PR enhances operator to support Patroni 4.x while retaining compatibility with existing clusters by making the new role label configurable. The role terminology has changed from "master" to "primary". By default, Spilo will use the same value as before. But to allow flexibility in label configurations, we need to ensure that the role label are configurable.
This is achieved by adding configurable parameters:
pod_leader_label_value
: default is set to "master"pod_standby_leader_label_value
: default is set to "standby_leader"