mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 00:07:47 +02:00
pick first container if postgres is not found (#1505)
* pick first container if postgres is not found * minor change
This commit is contained in:
+2
-2
@@ -357,8 +357,8 @@ func (c *Cluster) syncStatefulSet() error {
|
||||
// and
|
||||
// (b) some of the pods were not restarted when the lazy update was still in place
|
||||
for _, pod := range pods {
|
||||
effectivePodImage := c.getPostgresContainer(&pod.Spec).Image
|
||||
stsImage := c.getPostgresContainer(&desiredSts.Spec.Template.Spec).Image
|
||||
effectivePodImage := getPostgresContainer(&pod.Spec).Image
|
||||
stsImage := getPostgresContainer(&desiredSts.Spec.Template.Spec).Image
|
||||
|
||||
if stsImage != effectivePodImage {
|
||||
if err = c.markRollingUpdateFlagForPod(&pod, "pod not yet restarted due to lazy update"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user