new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/LoggingUtil.java
private static void cleanupPVPod(String namespace) throws ApiException {
    final String podName = "pv-pod-" + namespace;
    LoggingFacade logger = getLogger();
    ConditionFactory withStandardRetryPolicy = with().pollDelay(5, SECONDS)
        .and().with().pollInterval(5, SECONDS)
        .atMost(3, MINUTES).await();

    // Delete the temporary pod
    Kubernetes.deletePod(podName, namespace);

    // Wait for the pod to be deleted
    try {
      withStandardRetryPolicy
          .conditionEvaluationListener(
              condition -> logger.info("Waiting for {0} to be deleted in namespace {1}, "
                      + "(elapsed time {2} , remaining time {3}",
                  podName,
                  namespace,
                  condition.getElapsedTimeInMS(),
                  condition.getRemainingTimeInMS()))
          .until(podDoesNotExist(podName, null, namespace));
    } catch (ConditionTimeoutException ex) {
      logger.warning("Condition not met", ex);
    }
  }
/**
   * Delete the temporary pv pod.
   * @param namespace name of the namespace in which the copy pod running
   * @throws ApiException when pod deletion fails
   */
Delete the temporary pv pod.
@param namespace name of the namespace in which the copy pod running
@throws ApiException when pod deletion fails
Delete the temporary pv pod . @param namespace name of the namespace in which the copy pod running @throws ApiException when pod deletion fails
private static void cleanupPVPod(String namespace) throws ApiException {
    final String podName = "pv-pod-" + namespace;
    LoggingFacade logger = getLogger();
    ConditionFactory withStandardRetryPolicy = with().pollDelay(5, SECONDS)
        .and().with().pollInterval(5, SECONDS)
        .atMost(3, MINUTES).await();
    Kubernetes.deletePod(podName, namespace);
    try {
      withStandardRetryPolicy
          .conditionEvaluationListener(
              condition -> logger.info("Waiting for {0} to be deleted in namespace {1}, "
                      + "(elapsed time {2} , remaining time {3}",
                  podName,
                  namespace,
                  condition.getElapsedTimeInMS(),
                  condition.getRemainingTimeInMS()))
          .until(podDoesNotExist(podName, null, namespace));
    } catch (ConditionTimeoutException ex) {
      logger.warning("Condition not met", ex);
    }
  }
private static void cleanupPVPod ( String namespace ) throws ApiException { final String podName = "pv-pod-" + namespace ; LoggingFacade logger = getLogger ( ) ; ConditionFactory withStandardRetryPolicy = with ( ) . pollDelay ( 5 , SECONDS ) . and ( ) . with ( ) . pollInterval ( 5 , SECONDS ) . atMost ( 3 , MINUTES ) . await ( ) ; Kubernetes . deletePod ( podName , namespace ) ; try { withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for {0} to be deleted in namespace {1}, " + "(elapsed time {2} , remaining time {3}" , podName , namespace , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( podDoesNotExist ( podName , null , namespace ) ) ; } catch ( ConditionTimeoutException ex ) { logger . warning ( "Condition not met" , ex ) ; } }
Delete the temporary pv pod.
Delete the temporary pv pod .
// Delete the temporary pod // Wait for the pod to be deleted