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:
Jociele Padilha
2023-06-12 15:18:19 +02:00
committed by GitHub
co-authored by Jociele Padilha
parent af084a5a65
commit 04f18b9716
3 changed files with 55 additions and 2 deletions
+1 -1
View File
@@ -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 {