I’m fairly unfamiliar with Go/Angular so I haven’t been able to intuit my question from the Kubernetes/Dashboard source code.
How does the dashboard handle pagination of kubernetes resources? According to the K8 API, when you query for lists of resources (e.g., Pods) you get back a List object (e.g, PodList) and that list has a continue token for retrieving the next batch of results for the query. In the kubernetes dashboard, those lists of resources are presented as tables with fully featured pagination (you can go both forward and backwards over the pages). I’m trying to figure out how the dashboard takes the PodList results, which essentially allows only forward cursoring, and builds a multi-directional paged table? Does it load all of the results into memory in the back end? Is it reissuing the query or otherwise caching results when the user pages backwards? Is there some API to K8 that supports offsets/limits? Also, how does the dashboard know the total number of results for each query (necessary when it’s dividing up into pages)?
Thanks! If this is not the right place for this question, please let me know.