瀏覽代碼

quick fix for pagination

Alexander Belanger 4 年之前
父節點
當前提交
ab2ffee264
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      internal/kubernetes/agent.go

+ 8 - 0
internal/kubernetes/agent.go

@@ -779,6 +779,14 @@ func (a *Agent) StreamJobs(namespace string, selectors string, rw *websocket.Web
 						return
 						return
 					}
 					}
 				}
 				}
+
+				if jobs.Continue == "" {
+					// we have reached the end of the list of jobs
+					break
+				} else {
+					// start pagination
+					continueVal = jobs.Continue
+				}
 			}
 			}
 		}()
 		}()