Skip to content

Commit

Permalink
Merge pull request #7468 from blackpiglet/7464_fix_release_1.13
Browse files Browse the repository at this point in the history
[release-1.13]Modify the label used by the restore CLI to filter the PVR.
  • Loading branch information
Lyndon-Li authored Mar 1, 2024
2 parents 99376a3 + a6a6da5 commit 8dca539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/cli/restore/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func NewDescribeCommand(f client.Factory, use string) *cobra.Command {
podVolumeRestoreList := new(velerov1api.PodVolumeRestoreList)
err = kbClient.List(context.TODO(), podVolumeRestoreList, &controllerclient.ListOptions{
Namespace: f.Namespace(),
LabelSelector: labels.SelectorFromSet(map[string]string{velerov1api.BackupNameLabel: label.GetValidName(restore.Name)}),
LabelSelector: labels.SelectorFromSet(map[string]string{velerov1api.RestoreNameLabel: label.GetValidName(restore.Name)}),
})
if err != nil {
fmt.Fprintf(os.Stderr, "error getting PodVolumeRestores for restore %s: %v\n", restore.Name, err)
Expand Down

0 comments on commit 8dca539

Please sign in to comment.