velero/pkg/test
Bridget McErlean b9a8c0b254
Pass configured BSL credential to plugin via config (#3442)
* Load credentials and pass to ObjectStorage plugins

Update NewObjectBackupStore to take a CredentialsGetter which can be
used to get the credentials for a BackupStorageLocation if it has been
configured with a Credential. If the BSL has a credential, use that
SecretKeySelector to fetch the secret, write the contents to a temp file
and then pass that file through to the plugin via the config map using
the key `credentialsFile`. This relies on the plugin being able to use
this new config field.

This does not yet handle VolumeSnapshotLocations or ResticRepositories.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>

* Address code reviews

Add godocs and comments.
Improve formatting and test names.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>

* Address code reviews

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
2021-03-04 13:43:15 -08:00
..
api_server.go Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
comparisons.go move contents of pkg/util/test into pkg/test 2019-08-07 08:26:00 -06:00
discovery_client.go extract shared API test helpers to pkg/test 2019-06-20 14:57:31 -06:00
fake_controller_runtime_client.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
fake_credential_file_store.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08:00
fake_discovery_helper.go add kindfor func to get apiresource from gvk (#2764) 2020-08-17 15:52:33 -07:00
fake_dynamic.go Support cli uninstall (#3399) 2021-03-04 14:16:40 -05:00
fake_file_system.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08:00
fake_mapper.go move contents of pkg/util/test into pkg/test 2019-08-07 08:26:00 -06:00
fake_namespace.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
fake_volume_snapshotter.go move contents of pkg/util/test into pkg/test 2019-08-07 08:26:00 -06:00
helpers.go move contents of pkg/util/test into pkg/test 2019-08-07 08:26:00 -06:00
mock_pod_command_executor.go Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
resources.go If includeClusterResources is nil/auto, pull in necessary CRDs (#1831) 2019-10-17 12:31:04 -06:00
tar_writer.go Invoke DeleteItemActions on backup deletion (#2815) 2020-08-20 17:24:29 -07:00
test_logger.go move contents of pkg/util/test into pkg/test 2019-08-07 08:26:00 -06:00