Merge pull request #169 from nrb/160-fix

Use label selector in backup, restore, schedule lists
This commit is contained in:
Steve Kriss
2017-10-31 16:38:07 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

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)
}

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)
}

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)
}