From 75c652e77f5d73b1dd809bf42a3d9e150ff3ef29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mu=C3=9Fler?= Date: Wed, 9 Dec 2020 14:00:14 +0100 Subject: [PATCH] Ensure to log errors. --- pkg/cluster/sync.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/sync.go b/pkg/cluster/sync.go index 093454381..94736b531 100644 --- a/pkg/cluster/sync.go +++ b/pkg/cluster/sync.go @@ -56,7 +56,10 @@ func (c *Cluster) Sync(newSpec *acidv1.Postgresql) error { c.logger.Debugf("syncing volumes using %q storage resize mode", c.OpConfig.StorageResizeMode) if c.OpConfig.EnableEBSGp3Migration { - c.executeEBSMigration() + err = c.executeEBSMigration() + if nil != err { + return err + } } if c.OpConfig.StorageResizeMode == "mixed" {