use UpdateRevision hash

This commit is contained in:
Felix Kunde 2020-04-21 19:26:56 +02:00
parent f7699b2714
commit 43ae91f44a
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ func (c *Cluster) recreatePods() error {
role := PostgresRole(pod.Labels[c.OpConfig.PodRoleLabel]) role := PostgresRole(pod.Labels[c.OpConfig.PodRoleLabel])
// final check if spec of running pod differs from template // final check if spec of running pod differs from template
if pod.ObjectMeta.Labels["controller-revision-hash"] == c.Statefulset.Status.CurrentRevision { if pod.ObjectMeta.Labels["controller-revision-hash"] == c.Statefulset.Status.UpdateRevision {
c.logger.Infof("%q pod %q already updated", role, podName) c.logger.Infof("%q pod %q already updated", role, podName)
continue continue
} }