podList.getItems().forEach((obj) -> { System.out.println(obj.getMetadata().getName()); }); podList = client.pods().inNamespace("myproject").list(5, podList.getMetadata().getContinue()); podList.getItems().forEach((obj) -> { System.out.println(obj.getMetadata().getName()); });
@VisibleForTesting synchronized void tryPollPods() { // Fetch pods _before_ fetching all active states final PodList list = client.pods().list(); final Map<WorkflowInstance, RunState> activeStates = stateManager.getActiveStates(); examineRunningWFISandAssociatedPods(activeStates, list); for (Pod pod : list.getItems()) { logEvent(Watcher.Action.MODIFIED, pod, list.getMetadata().getResourceVersion(), true); final Optional<WorkflowInstance> workflowInstance = readPodWorkflowInstance(pod); if (!workflowInstance.isPresent()) { continue; } final RunState runState = activeStates.get(workflowInstance.get()); if (runState != null && isPodRunState(pod, runState)) { emitPodEvents(pod, runState); cleanupWithRunState(workflowInstance.get(), pod, runState); } else { // The pod is stale as we fetched the active states _after_ listing all pods. cleanupWithoutRunState(workflowInstance.get(), pod); } } }
public PodListBuilder(PodListFluent<?> fluent,PodList instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); this.validationEnabled = validationEnabled; } public PodListBuilder(PodList instance){
public PodListBuilder( PodListFluent<?> fluent , PodList instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); } public PodListBuilder( PodList instance ){
public PodListBuilder(PodList instance,Boolean validationEnabled){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.validationEnabled = validationEnabled; }
public PodListFluentImpl(PodList instance){ this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); }
public PodListBuilder( PodListFluent<?> fluent , PodList instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); } public PodListBuilder( PodList instance ){
public PodListBuilder( PodList instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); }
public PodListBuilder( PodList instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); }