Class PodOperationUtil


  • public class PodOperationUtil
    extends Object
    • Method Detail

      • getFilteredPodsForLogs

        public static List<io.fabric8.kubernetes.client.dsl.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 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
      • watchLog

        public static io.fabric8.kubernetes.client.dsl.LogWatch watchLog​(List<io.fabric8.kubernetes.client.dsl.PodResource> podResources,
                                                                         OutputStream out)
      • getLogReader

        public static Reader getLogReader​(List<io.fabric8.kubernetes.client.dsl.PodResource> podResources)
      • getLogInputStream

        public static InputStream getLogInputStream​(List<io.fabric8.kubernetes.client.dsl.PodResource> podResources)
      • getLog

        public static String getLog​(List<io.fabric8.kubernetes.client.dsl.PodResource> podOperationList,
                                    Boolean isPretty)
      • getPodOperationsForController

        public static List<io.fabric8.kubernetes.client.dsl.PodResource> getPodOperationsForController​(PodOperationsImpl podOperations,
                                                                                                       String controllerUid,
                                                                                                       Map<String,​String> selectorLabels)
      • waitUntilReadyOrTerminal

        public static io.fabric8.kubernetes.api.model.Pod waitUntilReadyOrTerminal​(io.fabric8.kubernetes.client.dsl.PodResource podOperation,
                                                                                   int logWaitTimeoutMs)