Skip to content

Commit

Permalink
chore: fix func documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tuusberg committed Dec 30, 2023
1 parent 0acb21b commit c319e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/restorepluginv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (p *RestorePluginV2) AppliesTo() (velero.ResourceSelector, error) {
}

// Execute allows the RestorePlugin to perform arbitrary logic with the item being restored,
// in this case, setting a custom annotation on the item being restored.
// in this case, suspending the CronJob being restored.
func (p *RestorePluginV2) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error) {
// Since the resource selector we defined in AppliesTo() only matches
// CronJob resources, we can safely cast the input.Item to a *v1.CronJob.
Expand Down

0 comments on commit c319e01

Please sign in to comment.