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

    V1Namespace ns = null;
    try {
      ns = coreV1Api.createNamespace(
              namespace, // V1Namespace configuration data object
              PRETTY, // pretty print output
              null, // indicates that modifications should not be persisted
              null // name associated with the actor or entity that is making these changes
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }

    return true;
  }
/**
   * Create a Kubernetes namespace.
   *
   * @param namespace - V1Namespace object containing namespace configuration data
   * @return true if successful
   * @throws ApiException if Kubernetes client API call fails
   */
Create a Kubernetes namespace.
@param namespace - V1Namespace object containing namespace configuration data
@return true if successful
@throws ApiException if Kubernetes client API call fails
Create a Kubernetes namespace . @param namespace - V1Namespace object containing namespace configuration data @return true if successful @throws ApiException if Kubernetes client API call fails
public static boolean createNamespace(V1Namespace namespace) throws ApiException {
    if (namespace == null) {
      throw new IllegalArgumentException(
              "Parameter 'namespace' cannot be null when calling createNamespace()");
    }
    V1Namespace ns = null;
    try {
      ns = coreV1Api.createNamespace(
              namespace, 
              PRETTY, 
              null, 
              null 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return true;
  }
public static boolean createNamespace ( V1Namespace namespace ) throws ApiException { if ( namespace == null ) { throw new IllegalArgumentException ( "Parameter 'namespace' cannot be null when calling createNamespace()" ) ; } V1Namespace ns = null ; try { ns = coreV1Api . createNamespace ( namespace , PRETTY , null , null ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return true ; }
Create a Kubernetes namespace.
Create a Kubernetes namespace .
// V1Namespace configuration data object // pretty print output // indicates that modifications should not be persisted // name associated with the actor or entity that is making these changes