mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-06 05:25:40 +00:00
allow custom restic repo prefix to be specified in BSL config
Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
@@ -57,6 +57,10 @@ func getRepoPrefix(location *velerov1api.BackupStorageLocation) (string, error)
|
||||
provider = "velero.io/" + provider
|
||||
}
|
||||
|
||||
if repoPrefix := location.Spec.Config["resticRepoPrefix"]; repoPrefix != "" {
|
||||
return repoPrefix, nil
|
||||
}
|
||||
|
||||
switch BackendType(provider) {
|
||||
case AWSBackend:
|
||||
var url string
|
||||
|
||||
Reference in New Issue
Block a user