postgres-operator/pkg/util
Oleksii Kliukin 987b43456b
Deprecate old LB options, fix endpoint sync. (#287)
* Depreate old LB options, fix endpoint sync.

- deprecate useLoadBalancer, replicaLoadBalancer from the manifest
  and enable_load_balancer from the operator configuration. The old
  operator configuration options become no-op with this commit. For
  the old manifest options, `useLoadBalancer` and `replicaLoadBalancer`
  are still consulted,  but only in the absense of the new ones
  (enableMasterLoadBalancer and enableReplicaLoadBalancer).

- Make sure the endpoint being created during the sync receives proper
  addresses subset. This is more critical for the replicas, as for the
  masters Patroni will normally re-create the endpoint before the
  operator.

- Avoid creating the replica endpoint, since it will be created automatically
  by the corresponding service.
- Update the README and unit tests.

Code review by @mgomezch and @zerg-junior
2018-05-15 15:19:18 +02:00
..
config Deprecate old LB options, fix endpoint sync. (#287) 2018-05-15 15:19:18 +02:00
constants Kube cluster upgrade 2017-10-19 10:49:42 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
k8sutil Merge branch 'master' into support-many-namespaces 2018-02-16 15:06:10 +01:00
patroni Make code around recreating pods and creating objects in the database less brittle (#213) 2018-02-22 10:42:05 +01:00
retryutil Improve the condition check. 2018-02-22 10:13:46 +01:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams Tests for initHumanUsers and initinitRobotUsers. 2017-12-04 10:49:25 +01:00
users Some improvements for golint, ineffassign and misspell 2018-02-19 17:46:31 +01:00
volumes Fix golint warnings 2017-08-01 16:08:56 +02:00
util.go Respond to code review 2018-02-20 14:43:02 +01:00
util_test.go Perform manual failover during the scale down 2017-10-16 17:41:23 +02:00