Class PodOperationUtil
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.internal.PodOperationUtil
-
public class PodOperationUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PodResource>
getFilteredPodsForLogs(PodOperationsImpl podOperations, io.fabric8.kubernetes.api.model.PodList controllerPodList, String controllerUid)
Gets PodOperations for Pods specific to a controllerstatic PodOperationsImpl
getGenericPodOperations(OperationContext context, PodOperationContext podOperationContext)
static String
getLog(List<PodResource> podOperationList, Boolean isPretty)
static InputStream
getLogInputStream(List<PodResource> podResources)
static Reader
getLogReader(List<PodResource> podResources)
static List<PodResource>
getPodOperationsForController(PodOperationsImpl podOperations, String controllerUid, Map<String,String> selectorLabels)
static List<PodResource>
getPodOperationsForController(OperationContext context, PodOperationContext podOperationContext, String controllerUid, Map<String,String> selectorLabels)
static io.fabric8.kubernetes.api.model.Pod
waitUntilReadyOrTerminal(PodResource podOperation, int logWaitTimeoutMs)
static LogWatch
watchLog(List<PodResource> podResources, OutputStream out)
-
-
-
Method Detail
-
getFilteredPodsForLogs
public static List<PodResource> getFilteredPodsForLogs(PodOperationsImpl podOperations, io.fabric8.kubernetes.api.model.PodList controllerPodList, String controllerUid)
Gets PodOperations for Pods specific to a controller- Parameters:
podOperations
-PodOperationsImpl
generic PodOperations class without any pod configuredcontrollerPodList
- List of pods based on a label that are related to a ControllercontrollerUid
- UID of Controller- Returns:
- returns list of PodOperations with pods whose owner's UID is of the provided controller
-
getGenericPodOperations
public static PodOperationsImpl getGenericPodOperations(OperationContext context, PodOperationContext podOperationContext)
-
getPodOperationsForController
public static List<PodResource> getPodOperationsForController(OperationContext context, PodOperationContext podOperationContext, String controllerUid, Map<String,String> selectorLabels)
-
watchLog
public static LogWatch watchLog(List<PodResource> podResources, OutputStream out)
-
getLogReader
public static Reader getLogReader(List<PodResource> podResources)
-
getLogInputStream
public static InputStream getLogInputStream(List<PodResource> podResources)
-
getLog
public static String getLog(List<PodResource> podOperationList, Boolean isPretty)
-
getPodOperationsForController
public static List<PodResource> getPodOperationsForController(PodOperationsImpl podOperations, String controllerUid, Map<String,String> selectorLabels)
-
waitUntilReadyOrTerminal
public static io.fabric8.kubernetes.api.model.Pod waitUntilReadyOrTerminal(PodResource podOperation, int logWaitTimeoutMs)
-
-