integration-tests/src/test/java/oracle/kubernetes/operator/utils/DbUtils.java
public static void createNamespace(String namespace) throws Exception {
    if (!namespace.equalsIgnoreCase("default")) {
      String cmd1 = "kubectl delete ns " + namespace + " --ignore-not-found";
      logger.info("Running " + cmd1);
      TestUtils.execOrAbortProcess(cmd1, true);
      String cmd2 = "kubectl create ns " + namespace;
      logger.info("Running " + cmd2);
      TestUtils.execOrAbortProcess(cmd2, true);
    }
  }
/**
   * Create a namespace.
   * 
   * @param namespace namespace to create
   * @throws Exception if any error occurs
   */
Create a namespace.

@param namespace namespace to create
@throws Exception if any error occurs
Create a namespace . @param namespace namespace to create @throws Exception if any error occurs
public static void createNamespace(String namespace) throws Exception {
    if (!namespace.equalsIgnoreCase("default")) {
      String cmd1 = "kubectl delete ns " + namespace + " --ignore-not-found";
      logger.info("Running " + cmd1);
      TestUtils.execOrAbortProcess(cmd1, true);
      String cmd2 = "kubectl create ns " + namespace;
      logger.info("Running " + cmd2);
      TestUtils.execOrAbortProcess(cmd2, true);
    }
  }
public static void createNamespace ( String namespace ) throws Exception { if ( ! namespace . equalsIgnoreCase ( "default" ) ) { String cmd1 = "kubectl delete ns " + namespace + " --ignore-not-found" ; logger . info ( "Running " + cmd1 ) ; TestUtils . execOrAbortProcess ( cmd1 , true ) ; String cmd2 = "kubectl create ns " + namespace ; logger . info ( "Running " + cmd2 ) ; TestUtils . execOrAbortProcess ( cmd2 , true ) ; } }
Create a namespace.
Create a namespace .