Skip to content

Commit 02d5086

Browse files
committed
Fix backup location validation to coexist with registry dir.
Velero backup location validation ensures that there isn't non-velero content in the backup location. This commit makes an exception for a top level registry/ dir to allow us to use the same bucket for migration registry storage as we use for the backups.
1 parent d6817a3 commit 02d5086

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/persistence/object_store_layout.go

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ func (l *ObjectStoreLayout) GetResticDir() string {
5656

5757
func (l *ObjectStoreLayout) isValidSubdir(name string) bool {
5858
_, ok := l.subdirs[name]
59+
if !ok {
60+
return name == "registry"
61+
}
5962
return ok
6063
}
6164

0 commit comments

Comments
 (0)