Support setting a custom CA bundle to use with a BackupStorageLocation (#2353)

* Support setting a custom CA certificate for a BSL

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* update CRDS

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* Add changelog for #2353

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* Clean up temp file from TestTempCACertFile

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
This commit is contained in:
Samuel Lucidi
2020-03-24 17:50:48 -04:00
committed by GitHub
parent d1482d927e
commit 4d49b5971c
15 changed files with 171 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ import (
func ValidateObjectStoreConfigKeys(config map[string]string, validKeys ...string) error {
// `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")...)
return validateConfigKeys(config, append(validKeys, "bucket", "prefix", "caCert")...)
}
// ValidateVolumeSnapshotterConfigKeys ensures that a volume snapshotter's