Merge pull request #6067 from reasonerjt/refine-log-bia-skip

Refine the log message when BIA is skipped
This commit is contained in:
qiuming
2023-04-03 11:29:02 +08:00
committed by GitHub

View File

@@ -323,11 +323,11 @@ func (ib *itemBackupper) executeActions(
continue
}
log.Info("Executing custom action")
if act, err := ib.getMatchAction(obj, groupResource, action.Name()); err != nil {
actionName := action.Name()
if act, err := ib.getMatchAction(obj, groupResource, actionName); err != nil {
return nil, itemFiles, errors.WithStack(err)
} else if act != nil && act.Type == resourcepolicies.Skip {
log.Infof("skip snapshot of pvc %s/%s bound pv for the matched resource policies", namespace, name)
log.Infof("Skip executing Backup Item Action: %s of resource %s: %s/%s for the matched resource policies", actionName, groupResource, namespace, name)
continue
}