new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static void replaceNamespace(V1Namespace ns) throws ApiException {

    try {
      coreV1Api.replaceNamespace(
              ns.getMetadata().getName(), // name of the namespace
              ns, // V1Namespace object body
              PRETTY, // pretty print the output
              null, // dry run or changes need to be permanent
              null // field manager
      );
    } catch (ApiException ex) {
      getLogger().severe(ex.getResponseBody());
      throw ex;
    }
  }
/**
   * Replace a existing namespace with configuration changes.
   *
   * @param ns V1Namespace object
   * @throws ApiException when replacing namespace fails
   */
Replace a existing namespace with configuration changes.
@param ns V1Namespace object
@throws ApiException when replacing namespace fails
Replace a existing namespace with configuration changes . @param ns V1Namespace object @throws ApiException when replacing namespace fails
public static void replaceNamespace(V1Namespace ns) throws ApiException {
    try {
      coreV1Api.replaceNamespace(
              ns.getMetadata().getName(), 
              ns, 
              PRETTY, 
              null, 
              null 
      );
    } catch (ApiException ex) {
      getLogger().severe(ex.getResponseBody());
      throw ex;
    }
  }
public static void replaceNamespace ( V1Namespace ns ) throws ApiException { try { coreV1Api . replaceNamespace ( ns . getMetadata ( ) . getName ( ) , ns , PRETTY , null , null ) ; } catch ( ApiException ex ) { getLogger ( ) . severe ( ex . getResponseBody ( ) ) ; throw ex ; } }
Replace a existing namespace with configuration changes.
Replace a existing namespace with configuration changes .
// name of the namespace // V1Namespace object body // pretty print the output // dry run or changes need to be permanent // field manager