velero/pkg/restore
sseago a519547efc Adds support for allowing a RestoreItemAction to skip item restore (#1336)
* Adds support for allowing a RestoreItemAction to skip item restore

This allows a RestoreItemAction plugin to signal to velero that
the returned item should be skipped rather than restored to the
cluster.

To support this, a boolean SkipRestore attribute is added to
RestoreItemActionExecuteOutput. If restore.restoreResource finds
this set to true, any remaining actions on this item are skipped,
and restore on this item is skipped. Execution continues with
the next item of this resource type.

To signal this for a particular item, the RestoreItemAction's
Execute method should call WithoutRestore() on the
RestoreItemActionExecuteOutput before returning it.

Signed-off-by: Scott Seago <sseago@redhat.com>

* Autogenerated code to support SkipRestore

Signed-off-by: Scott Seago <sseago@redhat.com>

* Added changelog for #1336

Signed-off-by: Scott Seago <sseago@redhat.com>
2019-04-04 13:39:54 -06:00
..
mocks update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
add_pv_from_pvc_action.go add additionalItems to restore item actions (#1304) 2019-03-28 12:21:56 -07:00
add_pv_from_pvc_action_test.go add additionalItems to restore item actions (#1304) 2019-03-28 12:21:56 -07:00
add_pvc_from_pod_action.go add additionalItems to restore item actions (#1304) 2019-03-28 12:21:56 -07:00
add_pvc_from_pod_action_test.go add additionalItems to restore item actions (#1304) 2019-03-28 12:21:56 -07:00
backup_extractor.go Update ark restore to not open every single file open during extraction of the data 2019-03-07 11:23:35 -05:00
job_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
job_action_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
merge_service_account.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
merge_service_account_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pod_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pod_action_test.go remove Warning from restore item action output (#1318) 2019-03-28 13:08:37 -07:00
pv_restorer.go rename BlockStore to VolumeSnapshotter 2019-03-27 14:55:28 -06:00
pv_restorer_test.go rename BlockStore to VolumeSnapshotter 2019-03-27 14:55:28 -06:00
restic_restore_action.go allow restic restore helper image to be specified via ConfigMap (#1311) 2019-03-29 17:11:34 -04:00
restic_restore_action_test.go allow restic restore helper image to be specified via ConfigMap (#1311) 2019-03-29 17:11:34 -04:00
restore.go Adds support for allowing a RestoreItemAction to skip item restore (#1336) 2019-04-04 13:39:54 -06:00
restore_test.go add additionalItems to restore item actions (#1304) 2019-03-28 12:21:56 -07:00
service_account_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
service_account_action_test.go remove Warning from restore item action output (#1318) 2019-03-28 13:08:37 -07:00
service_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
service_action_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00