Class PodOperationUtil


  • public class PodOperationUtil
    extends Object
    • 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 - PodOperationsImpl generic PodOperations class without any pod configured
        controllerPodList - List of pods based on a label that are related to a Controller
        controllerUid - UID of Controller
        Returns:
        returns list of PodOperations with pods whose owner's UID is of the provided controller
      • waitUntilReadyBeforeFetchingLogs

        public static void waitUntilReadyBeforeFetchingLogs​(PodResource<io.fabric8.kubernetes.api.model.Pod> podOperation,
                                                            Integer logWaitTimeout)