Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Jul 16, 2024
1 parent cb45182 commit b8c1e77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/bsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func (r *DPAReconciler) validateAWSBackupStorageLocation(bslSpec velerov1.Backup
// - even when s3ForcePathStyle is false, some aws bucket regions may not be discoverable and the user has to set it manually
if (bslSpec.Config == nil || len(bslSpec.Config[Region]) == 0) &&
(bslSpec.Config != nil && bslSpec.Config[S3ForcePathStyle] == "true" || !aws.BucketRegionIsDiscoverable(bslSpec.ObjectStorage.Bucket)) {
fmt.Printf("debug bslspec: %+v", bslSpec)
return fmt.Errorf("region for AWS backupstoragelocation not automatically discoverable. Please set the region in the backupstoragelocation config")
}

Expand Down

0 comments on commit b8c1e77

Please sign in to comment.