new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/LoggingUtil.java
private static void copyFromPV(
      String namespace,
      String pvcName,
      String pvName,
      Path destinationPath) throws ApiException {

    V1Pod pvPod = null;
    try {
      // create a temporary pod
      pvPod = setupPVPod(namespace, pvcName, pvName);
      // copy from the temporary pod to local folder
      copyDirectoryFromPod(pvPod, destinationPath);
    } finally {
      // remove the temporary pod
      if (pvPod != null) {
        cleanupPVPod(namespace);
      }
    }
  }
/**
   * Copy files from persistent volume to local folder.
   * @param namespace name of the namespace, used for creating temporary pod in it.
   * @param pvcName name of the persistent volume claim
   * @param pvName name of the persistent volume from which the contents needs to be archived
   * @param destinationPath destination folder to copy the files to
   * @throws ApiException when pod interaction fails
   */
Copy files from persistent volume to local folder.
@param namespace name of the namespace, used for creating temporary pod in it.
@param pvcName name of the persistent volume claim
@param pvName name of the persistent volume from which the contents needs to be archived
@param destinationPath destination folder to copy the files to
@throws ApiException when pod interaction fails
Copy files from persistent volume to local folder . @param namespace name of the namespace used for creating temporary pod in it . @param pvcName name of the persistent volume claim @param pvName name of the persistent volume from which the contents needs to be archived @param destinationPath destination folder to copy the files to @throws ApiException when pod interaction fails
private static void copyFromPV(
      String namespace,
      String pvcName,
      String pvName,
      Path destinationPath) throws ApiException {
    V1Pod pvPod = null;
    try {
      pvPod = setupPVPod(namespace, pvcName, pvName);
      copyDirectoryFromPod(pvPod, destinationPath);
    } finally {
      if (pvPod != null) {
        cleanupPVPod(namespace);
      }
    }
  }
private static void copyFromPV ( String namespace , String pvcName , String pvName , Path destinationPath ) throws ApiException { V1Pod pvPod = null ; try { pvPod = setupPVPod ( namespace , pvcName , pvName ) ; copyDirectoryFromPod ( pvPod , destinationPath ) ; } finally { if ( pvPod != null ) { cleanupPVPod ( namespace ) ; } } }
Copy files from persistent volume to local folder.
Copy files from persistent volume to local folder .
// create a temporary pod // copy from the temporary pod to local folder // remove the temporary pod