velero/pkg/backup
Andy Goldstein 74f60b1ee1 Switch backup finalizer to DeleteBackupRequest
We ran into a lot of problems using a finalizer on the backup to allow
the Ark server to clean up all associated backup data when deleting a
backup.

Users also found it less than desirable that deleting the heptio-ark
namespace resulted in all the backup data being deleted.

This removes the finalizer and replaces it with an explicit
DeleteBackupRequest that is created as a means of requesting the
deletion of a backup and all its associated data. This is what `ark
backup delete` does.

If you use kubectl to delete a backup or to delete the heptio-ark
namespace, this no longer deletes associated backups. Additionally, as
long as the heptio-ark namespace still exists, the Ark server's
BackupSyncController will continually sync backups into the heptio-ark
namespace from object storage.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-04-05 11:16:15 -04:00
..
backup.go Add events to nonRestorableResources and cohabitatingResources 2018-03-12 19:55:32 -05:00
backup_pv_action.go make language and casing consistent across copyrights 2018-01-02 10:51:49 -08:00
backup_pv_action_test.go don't error if PVC is not bound to a PV 2017-12-19 14:10:58 -08:00
backup_test.go Add events to nonRestorableResources and cohabitatingResources 2018-03-12 19:55:32 -05:00
delete_helpers.go Switch backup finalizer to DeleteBackupRequest 2018-04-05 11:16:15 -04:00
group_backupper.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
group_backupper_test.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
item_action.go Merge pull request #229 from skriss/plugin-docs 2017-11-30 11:25:53 -05:00
item_backupper.go add useful Ark tags to snapshots 2018-03-13 12:17:50 -07:00
item_backupper_test.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
item_hook_handler.go only log if hooks are actually executing 2018-03-07 09:29:27 -08:00
item_hook_handler_test.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
mocks_test.go Add pod exec backup hooks 2017-10-20 10:20:59 -04:00
pod_action.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
pod_action_test.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00
pod_command_executor.go switch to logrus.FieldLogger and arktest.NewLogger() everywhere 2017-12-13 09:38:00 -08:00
pod_command_executor_test.go switch to logrus.FieldLogger and arktest.NewLogger() everywhere 2017-12-13 09:38:00 -08:00
resource_backupper.go migrate backup actions to plugins 2017-11-21 10:03:03 -08:00
resource_backupper_test.go Support pre and post hooks. 2018-01-05 10:47:34 -05:00