new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Kubernetes.java
public static boolean doesPodNotExist(String namespace, String domainUid, String podName) throws ApiException {
    boolean podDeleted = false;
    String labelSelector = null;
    if (domainUid != null) {
      labelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    }
    V1Pod pod = getPod(namespace, labelSelector, podName);
    if (pod == null) {
      podDeleted = true;
    } else {
      getLogger().info("[" + pod.getMetadata().getName() + "] still exist");
    }
    return podDeleted;
  }
/**
   * Checks if a pod does not exist in a given namespace in any state.
   * @param namespace in which to check for the pod existence
   * @param domainUid the label the pod is decorated with
   * @param podName name of the pod to check for
   * @return true if pod does not exists otherwise false
   * @throws ApiException when there is error in querying the cluster
   */
Checks if a pod does not exist in a given namespace in any state.
Checks if a pod does not exist in a given namespace in any state .
public static boolean doesPodNotExist(String namespace, String domainUid, String podName) throws ApiException {
    boolean podDeleted = false;
    String labelSelector = null;
    if (domainUid != null) {
      labelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
    }
    V1Pod pod = getPod(namespace, labelSelector, podName);
    if (pod == null) {
      podDeleted = true;
    } else {
      getLogger().info("[" + pod.getMetadata().getName() + "] still exist");
    }
    return podDeleted;
  }
public static boolean doesPodNotExist ( String namespace , String domainUid , String podName ) throws ApiException { boolean podDeleted = false ; String labelSelector = null ; if ( domainUid != null ) { labelSelector = String . format ( "weblogic.domainUID in (%s)" , domainUid ) ; } V1Pod pod = getPod ( namespace , labelSelector , podName ) ; if ( pod == null ) { podDeleted = true ; } else { getLogger ( ) . info ( "[" + pod . getMetadata ( ) . getName ( ) + "] still exist" ) ; } return podDeleted ; }
Checks if a pod does not exist in a given namespace in any state.
Checks if a pod does not exist in a given namespace in any state .