Add the prefix to BSL config map so that object stores can use it when initializing (#1767)

Signed-off-by: Antony Bett <antony.bett@gmail.com>
This commit is contained in:
betta1
2019-08-19 14:05:38 -06:00
committed by Steve Kriss
parent a0cd954ce9
commit cfb663f795
3 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -23,11 +23,11 @@ import (
// ValidateObjectStoreConfigKeys ensures that an object store's config
// is valid by making sure each `config` key is in the `validKeys` list.
// The special key "bucket" is always considered valid.
// The special keys "bucket" and "prefix" are always considered valid.
func ValidateObjectStoreConfigKeys(config map[string]string, validKeys ...string) error {
// `bucket` is automatically added to all object store config by
// velero, so add it as a valid key.
return validateConfigKeys(config, append(validKeys, "bucket")...)
// `bucket` and `prefix` are automatically added to all object
// store config by velero, so add them as valid keys.
return validateConfigKeys(config, append(validKeys, "bucket", "prefix")...)
}
// ValidateVolumeSnapshotterConfigKeys ensures that a volume snapshotter's