postgres-operator/pkg/util
Oleksii Kliukin bf80f5225e
Introduce higher and lower bounds for the number of instances (#178)
* Introduce higher and lower bounds for the number of instances

Reduce the number of instances to the min_instances if it is lower and
to the max_instances if it is higher. -1 for either of those means there
is no lower or upper bound.

In addition, terminate the operator when there is a nonsense in the
configuration (i.e. max_instances < min_instances).

Reviewed by Jan Mußler and Sergey Dudoladov.
2017-12-15 16:02:50 +01:00
..
config Introduce higher and lower bounds for the number of instances (#178) 2017-12-15 16:02:50 +01: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 use sync methods while updating the cluster 2017-11-03 12:00:43 +01:00
patroni Retry connecting to pg 2017-10-17 17:03:50 +02:00
retryutil Fix golint warnings 2017-08-01 16:08:56 +02: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 Fixes for the case of re-creating the cluster after deletion. 2017-12-13 16:49:00 +01:00
volumes Fix golint warnings 2017-08-01 16:08:56 +02:00
util.go Perform manual failover during the scale down 2017-10-16 17:41:23 +02:00
util_test.go Perform manual failover during the scale down 2017-10-16 17:41:23 +02:00