mirror of
https://github.com/vmware-tanzu/velero.git
synced 2025-12-23 06:15:21 +00:00
Check whether the action is a CSI action and whether CSI feature is
enabled, before executing the action. The DeleteItemAction is not checked, because the DIA doesn't have a method to get the action's plugin name. This should be OK, because the CSI will check whether the VS and VSC have a backup name annotation. If the VS and VSC is not handled by the CSI plugin, then they don't have the annotation. Signed-off-by: Xun Jiang <jxun@vmware.com>
This commit is contained in:
@@ -119,6 +119,7 @@ func InvokeDeleteActions(ctx *Context) error {
|
||||
if !action.Selector.Matches(labels.Set(obj.GetLabels())) {
|
||||
continue
|
||||
}
|
||||
|
||||
err = action.DeleteItemAction.Execute(&velero.DeleteItemActionExecuteInput{
|
||||
Item: obj,
|
||||
Backup: ctx.Backup,
|
||||
|
||||
Reference in New Issue
Block a user