check both revisions of sts
This commit is contained in:
		
							parent
							
								
									43ae91f44a
								
							
						
					
					
						commit
						69bc5ec564
					
				|  | @ -343,7 +343,8 @@ func (c *Cluster) recreatePods() error { | |||
| 		role := PostgresRole(pod.Labels[c.OpConfig.PodRoleLabel]) | ||||
| 
 | ||||
| 		// final check if spec of running pod differs from template
 | ||||
| 		if pod.ObjectMeta.Labels["controller-revision-hash"] == c.Statefulset.Status.UpdateRevision { | ||||
| 		if c.Statefulset.Status.CurrentRevision != c.Statefulset.Status.UpdateRevision && | ||||
| 			pod.ObjectMeta.Labels["controller-revision-hash"] == c.Statefulset.Status.UpdateRevision { | ||||
| 			c.logger.Infof("%q pod %q already updated", role, podName) | ||||
| 			continue | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue