velero/pkg/restic
Bridget McErlean 9dbd238c89
Use controller-runtime client to get restic secrets (#3320)
* Use kubebuilder client for fetching restic secrets

Instead of using a SecretInformer for fetching secrets for restic, use
the cached client provided by the controller-runtime manager.

In order to use this client, the scheme for Secrets must be added to the
scheme used by the manager so this is added when creating the manager in
both the velero and restic servers.

This change also refactors some of the tests to add a shared utility for
creating a fake controller-runtime client which is now used among all
tests which use that client. This has been added to ensure that all
tests use the same client with the same scheme.

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

* Add builder for SecretKeySelector

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
2021-02-18 10:30:52 -08:00
..
mocks Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
aws.go Support AWS_PROFILE for restic backups/restore operations (#2096) 2019-12-09 09:46:02 -05:00
azure.go azure: support aad-pod-identity auth when using restic (#2602) 2020-06-08 11:17:43 -07:00
backupper.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
backupper_test.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
command.go fix copyright boilerplate 2020-06-18 14:14:15 -07:00
command_factory.go record restic restore progress in PodVolumeRestore (#1854) 2019-09-10 15:50:57 -06:00
command_factory_test.go record restic restore progress in PodVolumeRestore (#1854) 2019-09-10 15:50:57 -06:00
command_test.go fix copyright boilerplate 2020-06-18 14:14:15 -07:00
common.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
common_test.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
config.go Extract providers (#1985) 2019-10-22 15:31:27 -07:00
config_test.go Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
exec_commands.go Check for errors on restic backup command (#2863) 2020-08-25 08:51:50 -07:00
exec_commands_test.go properly handle empty restic stdout during progress updates (#2231) 2020-02-03 12:49:23 -07:00
repo_locker.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
repository_ensurer.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
repository_keys.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
repository_manager.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
restorer.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00