Class PodOperationUtil
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.PodOperationUtil
-
public class PodOperationUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PodResource<io.fabric8.kubernetes.api.model.Pod>>getFilteredPodsForLogs(PodOperationsImpl podOperations, io.fabric8.kubernetes.api.model.PodList controllerPodList, String controllerUid)Gets PodOperations for Pods specific to a controllerstatic PodOperationsImplgetGenericPodOperations(OperationContext context, boolean isPretty, Integer podLogWaitTimeout)static List<PodResource<io.fabric8.kubernetes.api.model.Pod>>getPodOperationsForController(OperationContext context, String controllerUid, Map<String,String> selectorLabels, boolean isPretty, Integer podLogWaitTimeout)static voidwaitUntilReadyBeforeFetchingLogs(PodResource<io.fabric8.kubernetes.api.model.Pod> podOperation, Integer logWaitTimeout)
-
-
-
Method Detail
-
getFilteredPodsForLogs
public static List<PodResource<io.fabric8.kubernetes.api.model.Pod>> getFilteredPodsForLogs(PodOperationsImpl podOperations, io.fabric8.kubernetes.api.model.PodList controllerPodList, String controllerUid)
Gets PodOperations for Pods specific to a controller- Parameters:
podOperations-PodOperationsImplgeneric 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, boolean isPretty, Integer podLogWaitTimeout)
-
getPodOperationsForController
public static List<PodResource<io.fabric8.kubernetes.api.model.Pod>> getPodOperationsForController(OperationContext context, String controllerUid, Map<String,String> selectorLabels, boolean isPretty, Integer podLogWaitTimeout)
-
waitUntilReadyBeforeFetchingLogs
public static void waitUntilReadyBeforeFetchingLogs(PodResource<io.fabric8.kubernetes.api.model.Pod> podOperation, Integer logWaitTimeout)
-
-