mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 04:23:32 +02:00
do not call EBS api when there are no pvs (#1851)
* do not call EBS api when there are no pvs * no extra aws api call in executeEBSMigration, operate on fetched cluster.EBSVolumes
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ func (c *Cluster) Sync(newSpec *acidv1.Postgresql) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if c.OpConfig.EnableEBSGp3Migration {
|
||||
if c.OpConfig.EnableEBSGp3Migration && len(c.EBSVolumes) > 0 {
|
||||
err = c.executeEBSMigration()
|
||||
if nil != err {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user