Delete all objects in backup dir

Delete all objects in backup "dir" when deleting a backup, instead of
hard-coding individual file names/types. This way, we'll be able to
delete log files and anything else we add without having to update our
deletion code.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
This commit is contained in:
Andy Goldstein
2017-09-06 16:58:43 -04:00
parent 193000e487
commit 50a95d052e
8 changed files with 393 additions and 801 deletions

View File

@@ -155,7 +155,7 @@ func TestProcessBackup(t *testing.T) {
backupper := &fakeBackupper{}
cloudBackups := &fakeBackupService{}
cloudBackups := &BackupService{}
sharedInformers := informers.NewSharedInformerFactory(client, 0)