velero/pkg/builder
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
..
backup_builder.go Owner reference in backup when created from schedule (#3127) 2020-12-11 13:10:34 -05:00
backup_storage_location_builder.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08:00
config_map_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
container_builder.go Improve name formatting logic and add more tests 2020-12-14 18:32:37 -08:00
container_builder_test.go Improve name formatting logic and add more tests 2020-12-14 18:32:37 -08:00
customresourcedefinition_builder.go Wait for CRDs to be ready before restoring CRs (#1937) 2020-01-30 09:19:13 -08:00
deployment_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
download_request_builder.go Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
json_schema_props_builder.go Fix int/float conversion issues in CRD version remapping plugin (#2322) 2020-03-10 09:24:22 -06:00
namespace_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
node_builder.go add restore item action to update PVC selected-node annotation (#2377) 2020-04-03 08:01:34 -07:00
object_meta.go pass annotations from scheduler to created backup (#3067) 2020-11-19 13:19:42 -08:00
persistent_volume_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
persistent_volume_claim_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
pod_builder.go Restore hooks exec (#2804) 2020-09-08 11:33:15 -07:00
pod_volume_backup_builder.go 🐛 Use namespace and name to match PVB to Pod restore (#3051) 2020-11-10 11:36:49 -05:00
restore_builder.go Preserve nodePort support with --preserve-nodeports flag (#3095) 2020-12-09 09:32:34 -08:00
role_builder.go store backup resource list metadata in object storage (#1709) 2019-08-05 11:15:55 -06:00
schedule_builder.go use pointer types for metav1.Time fields (#1951) 2019-10-14 10:20:28 -06:00
secret_builder.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
secret_key_selector_builder.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
server_status_request_builder.go Migrate ServerStatusRequest controller and resource to kubebuilder (#2838) 2020-09-01 14:15:23 -07:00
service_account_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
storage_class_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
v1_customresourcedefinition_builder.go Fix int/float conversion issues in CRD version remapping plugin (#2322) 2020-03-10 09:24:22 -06:00
volume_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
volume_mount_builder.go Add resource limits to restic init container (#1677) 2019-08-05 13:18:11 -06:00
volume_snapshot_location_builder.go Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00