new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean createPv(V1PersistentVolume persistentVolume) throws ApiException {
    if (persistentVolume == null) {
      throw new IllegalArgumentException(
              "Parameter 'persistentVolume' cannot be null when calling createPv()");
    }

    V1PersistentVolume pv;
    try {
      pv = coreV1Api.createPersistentVolume(
              persistentVolume, // persistent volume configuration data
              PRETTY, // pretty print output
              null, // indicates that modifications should not be persisted
              null // fieldManager is a name associated with the actor
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }

    return true;
  }
/**
   * Create a Kubernetes Persistent Volume.
   *
   * @param persistentVolume V1PersistentVolume object containing persistent volume configuration data
   * @return true if successful
   * @throws ApiException if Kubernetes client API call fails
   */
Create a Kubernetes Persistent Volume.
@param persistentVolume V1PersistentVolume object containing persistent volume configuration data
@return true if successful
@throws ApiException if Kubernetes client API call fails
Create a Kubernetes Persistent Volume . @param persistentVolume V1PersistentVolume object containing persistent volume configuration data @return true if successful @throws ApiException if Kubernetes client API call fails
public static boolean createPv(V1PersistentVolume persistentVolume) throws ApiException {
    if (persistentVolume == null) {
      throw new IllegalArgumentException(
              "Parameter 'persistentVolume' cannot be null when calling createPv()");
    }
    V1PersistentVolume pv;
    try {
      pv = coreV1Api.createPersistentVolume(
              persistentVolume, 
              PRETTY, 
              null, 
              null 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return true;
  }
public static boolean createPv ( V1PersistentVolume persistentVolume ) throws ApiException { if ( persistentVolume == null ) { throw new IllegalArgumentException ( "Parameter 'persistentVolume' cannot be null when calling createPv()" ) ; } V1PersistentVolume pv ; try { pv = coreV1Api . createPersistentVolume ( persistentVolume , PRETTY , null , null ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return true ; }
Create a Kubernetes Persistent Volume.
Create a Kubernetes Persistent Volume .
// persistent volume configuration data // pretty print output // indicates that modifications should not be persisted // fieldManager is a name associated with the actor