Skip to content

Commit

Permalink
Removed MTC-related functionality from common restore plugin. (#168)
Browse files Browse the repository at this point in the history
This will be re-introduced in a new plugin on the oadp-1.0 branch.
  • Loading branch information
sseago committed Sep 21, 2022
1 parent d5f5b49 commit 811cac4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions velero-plugins/common/restore.go
Expand Up @@ -67,26 +67,6 @@ func (p *RestorePlugin) Execute(input *velero.RestoreItemActionExecuteInput) (*v
}
annotations[RestoreRegistryHostname] = registryHostname

if input.Restore.Labels[MigrationApplicationLabelKey] == MigrationApplicationLabelValue {

// Set migmigration and migplan labels on all resources, except ServiceAccounts
migMigrationLabel, exist := input.Restore.Labels[MigMigrationLabelKey]
if !exist {
p.Log.Info("migmigration label was not found on restore")
}
migPlanLabel, exist := input.Restore.Labels[MigPlanLabelKey]
if !exist {
p.Log.Info("migplan label was not found on restore")
}
labels := metadata.GetLabels()
if labels == nil {
labels = make(map[string]string)
}
labels[MigMigrationLabelKey] = migMigrationLabel
labels[MigPlanLabelKey] = migPlanLabel

metadata.SetLabels(labels)
}
metadata.SetAnnotations(annotations)

return velero.NewRestoreItemActionExecuteOutput(input.Item), nil
Expand Down

0 comments on commit 811cac4

Please sign in to comment.