postgres-operator/pkg
Oleksii Kliukin fe47f9ebea
Improve the pod moving behavior during the Kubernetes cluster upgrade. (#281)
* Improve the pod moving behavior during the Kubernetes cluster upgrade.

Fix an issue of not waiting for at least one replica to become ready
(if the Statefulset indicates there are replicas) when moving the master
pod off the decomissioned node. Resolves the first part of #279.

Small fixes to error messages.

* Eliminate a race condition during the swithover.

When the operator initiates the failover (switchover) that fails and
then retries it for a second time it may happen that the previous
waitForPodChannel is still active. As a result, the operator subscribes
to the former master pod two times, causing a panic.

The problem was that the original code didn't bother to cancel the
waitForPodLalbel for the new master pod in the case when the failover
fails. This commit fixes it by adding a stop channel to that function.

Code review by @zerg-junior
2018-05-03 10:20:24 +02:00
..
apiserver Merge pull request #240 from zalando-incubator/feature/goreport-improvements 2018-02-22 11:31:08 +01:00
cluster Improve the pod moving behavior during the Kubernetes cluster upgrade. (#281) 2018-05-03 10:20:24 +02:00
controller Always empty account's namespace after parsing 2018-04-25 13:57:24 +02:00
spec Improve infrastructure role definitions (#208) 2018-04-04 17:21:36 +02:00
util Shorten bucket name 2018-05-02 14:05:57 +02:00