new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Kubernetes.java
public static boolean isPodRunning(String namespace, String domainUid, String podName) throws ApiException {
    boolean status = false;
    String labelSelector = null;
    if (domainUid != null) {
      labelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    }
    V1Pod pod = getPod(namespace, labelSelector, podName);
    if (pod != null) {
      status = pod.getStatus().getPhase().equals(RUNNING);
    } else {
      getLogger().info("Pod doesn't exist");
    }
    return status;
  }
/**
   * Checks if a pod exists in a given namespace and in Running state.
   * @param namespace in which to check for the pod running
   * @param domainUid the label the pod is decorated with
   * @param podName name of the pod to check for
   * @return true if pod exists and running otherwise false
   * @throws ApiException when there is error in querying the cluster
   */
Checks if a pod exists in a given namespace and in Running state.
Checks if a pod exists in a given namespace and in Running state .
public static boolean isPodRunning(String namespace, String domainUid, String podName) throws ApiException {
    boolean status = false;
    String labelSelector = null;
    if (domainUid != null) {
      labelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    }
    V1Pod pod = getPod(namespace, labelSelector, podName);
    if (pod != null) {
      status = pod.getStatus().getPhase().equals(RUNNING);
    } else {
      getLogger().info("Pod doesn't exist");
    }
    return status;
  }
public static boolean isPodRunning ( String namespace , String domainUid , String podName ) throws ApiException { boolean status = false ; String labelSelector = null ; if ( domainUid != null ) { labelSelector = String . format ( "weblogic.domainUID in (%s)" , domainUid ) ; } V1Pod pod = getPod ( namespace , labelSelector , podName ) ; if ( pod != null ) { status = pod . getStatus ( ) . getPhase ( ) . equals ( RUNNING ) ; } else { getLogger ( ) . info ( "Pod doesn't exist" ) ; } return status ; }
Checks if a pod exists in a given namespace and in Running state.
Checks if a pod exists in a given namespace and in Running state .