Use provided options when getting lists

Signed-off-by: Nolan Brubaker <nolan@heptio.com>
(cherry picked from commit 36a40a0cd3)
This commit is contained in:
Nolan Brubaker
2017-11-02 13:09:08 -04:00
committed by Andy Goldstein
parent 330a0502d1
commit 2ed07275b0
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}