mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 00:31:50 +02:00
wait for the pods from the previous rolling update
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ func (c *Cluster) waitForPodLabel(podEvents chan spec.PodEvent, spiloRole string
|
||||
select {
|
||||
case podEvent := <-podEvents:
|
||||
role := util.PodSpiloRole(podEvent.CurPod)
|
||||
if role == spiloRole {
|
||||
if role == spiloRole { // TODO: newly-created Pods are always replicas => check against empty string only
|
||||
return nil
|
||||
}
|
||||
case <-time.After(constants.PodLabelWaitTimeout):
|
||||
|
||||
Reference in New Issue
Block a user