mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 05:46:37 +00:00
Merge pull request #169 from nrb/160-fix
Use label selector in backup, restore, schedule lists
This commit is contained in:
@@ -49,7 +49,7 @@ func NewGetCommand(f client.Factory, use string) *cobra.Command {
|
||||
backups.Items = append(backups.Items, *backup)
|
||||
}
|
||||
} else {
|
||||
backups, err = arkClient.ArkV1().Backups(api.DefaultNamespace).List(metav1.ListOptions{})
|
||||
backups, err = arkClient.ArkV1().Backups(api.DefaultNamespace).List(listOptions)
|
||||
cmd.CheckError(err)
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ func NewGetCommand(f client.Factory, use string) *cobra.Command {
|
||||
restores.Items = append(restores.Items, *restore)
|
||||
}
|
||||
} else {
|
||||
restores, err = arkClient.ArkV1().Restores(api.DefaultNamespace).List(metav1.ListOptions{})
|
||||
restores, err = arkClient.ArkV1().Restores(api.DefaultNamespace).List(listOptions)
|
||||
cmd.CheckError(err)
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ func NewGetCommand(f client.Factory, use string) *cobra.Command {
|
||||
schedules.Items = append(schedules.Items, *schedule)
|
||||
}
|
||||
} else {
|
||||
schedules, err = arkClient.ArkV1().Schedules(api.DefaultNamespace).List(metav1.ListOptions{})
|
||||
schedules, err = arkClient.ArkV1().Schedules(api.DefaultNamespace).List(listOptions)
|
||||
cmd.CheckError(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user