Skip to content

AWS BSL should allow empty region #349

@kaovilai

Description

@kaovilai

Describe the bug

AWS BSL cannot have empty region. This is not how it should be according to BSL docs for aws plugin
Region can be queried from aws s3 api or not needed through means such as s3Url

To Reproduce
Steps to reproduce the behavior:
Create Velero CR with region empty

Expected behavior
Velero reconcile

Provide the following logs
Got error reconcile condition on velero object.
region for AWS backupstoragelocation config cannot be empty

Version of operator being used

  • 0.3.0

Additional context
Fix by changing the following

if len(bslSpec.Config[Region]) == 0 {
return fmt.Errorf("region for AWS backupstoragelocation config cannot be empty")
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions