wait for the pods from the previous rolling update

This commit is contained in:
Murat Kabilov
2017-05-12 11:41:28 +02:00
parent bbdc2f52a9
commit b6e6308bdc
3 changed files with 41 additions and 12 deletions
+1 -1
View File
@@ -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):