Skip to content

Bug: AWS plugin config: BSL Region not required when s3ForcePathStyle is false #424

@kaovilai

Description

@kaovilai

Contact Details

No response

Describe bug

When AWS plugin has s3ForcePathStyle and s3Url defined, a region does not need to be defined inside BSL.

What happened?

This velero CR should not have error status

apiVersion: oadp.openshift.io/v1alpha1
kind: Velero
metadata:
  name: example-velero
  namespace: openshift-adp
spec:
  backupStorageLocations:
    - backupSyncPeriod: 2m0s
      config:
        profile: default
        s3ForcePathStyle: 'true'
        s3Url: 'http://s3.openshift-storage.svc/'
      credential:
        key: cloud
        name: cloud-credentials
      default: true
      objectStorage:
        bucket: migstorage
        prefix: velero
      provider: aws
  defaultVeleroPlugins:
    - openshift
    - aws
    - csi
  enableRestic: true
  veleroFeatureFlags:
    - EnableCSI
  volumeSnapshotLocations:
    - config:
        profile: default
        region: us-east-1
      provider: aws
status:
  conditions:
    - lastTransitionTime: '2021-10-29T18:03:27Z'
      message: >-
        prefix and region for AWS backupstoragelocation object storage cannot be
        empty. It is required for backing up images
      reason: Error
      status: 'False'
      type: Reconciled

OADP Version

0.4.x (Beta)

OpenShift Version

4.8

Velero pod logs

No response

Restic pod logs

No response

Operator pod logs

No response

New issue

  • This issue is new

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions