mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 08:06:27 +02:00
fix extraction of EBS volume id when there's no region prefix (#2351)
* add prefix /vol- on when EBS doesn't have * add new unit test for to get the volumeID * add a prefix to search in the string of volumeID --------- Co-authored-by: Jociele Padilha <jociele.padilha@zalando.de>
This commit is contained in:
co-authored by
Jociele Padilha
parent
af084a5a65
commit
04f18b9716
@@ -35,7 +35,7 @@ func (c *Cluster) syncVolumes() error {
|
||||
|
||||
err = c.populateVolumeMetaData()
|
||||
if err != nil {
|
||||
c.logger.Errorf("populating EBS meta data failed, skipping potential adjustements: %v", err)
|
||||
c.logger.Errorf("populating EBS meta data failed, skipping potential adjustments: %v", err)
|
||||
} else {
|
||||
err = c.syncUnderlyingEBSVolume()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user