mirror of
https://github.com/vmware-tanzu/velero.git
synced 2025-12-23 06:15:21 +00:00
allow plugins/ as a valid directory in the BSL bucket
Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
@@ -39,6 +39,7 @@ func NewObjectStoreLayout(prefix string) *ObjectStoreLayout {
|
||||
"restores": path.Join(prefix, "restores") + "/",
|
||||
"restic": path.Join(prefix, "restic") + "/",
|
||||
"metadata": path.Join(prefix, "metadata") + "/",
|
||||
"plugins": path.Join(prefix, "plugins") + "/",
|
||||
}
|
||||
|
||||
return &ObjectStoreLayout{
|
||||
|
||||
@@ -138,6 +138,13 @@ func TestIsValid(t *testing.T) {
|
||||
},
|
||||
expectErr: false,
|
||||
},
|
||||
{
|
||||
name: "backup store with plugins directory is valid",
|
||||
storageData: map[string][]byte{
|
||||
"plugins/vsphere/foo": {},
|
||||
},
|
||||
expectErr: false,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range tests {
|
||||
|
||||
Reference in New Issue
Block a user