new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/DeployUtil.java
private static void deploy(String namespace, String deployScriptConfigMapName) {
    LoggingFacade logger = getLogger();
    logger.info("Preparing to run deploy job using WLST");
    // create a V1Container with specific scripts and properties for creating domain
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem(MOUNT_POINT + "/" + DEPLOY_SCRIPT) //wlst deploy py script
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem(MOUNT_POINT + "/" + DOMAIN_PROPERTIES); //domain property file

    logger.info("Running a Kubernetes job to deploy");
    assertDoesNotThrow(()
        -> createDeployJob(deployScriptConfigMapName, namespace, jobCreationContainer),
        "Deployment failed");
  }
/**
   * Deploy application by creating a job.
   *
   * @param namespace namespace in which to create job
   * @param deployScriptConfigMapName configmap containing deployment scripts
   */
Deploy application by creating a job.
@param namespace namespace in which to create job
@param deployScriptConfigMapName configmap containing deployment scripts
Deploy application by creating a job . @param namespace namespace in which to create job @param deployScriptConfigMapName configmap containing deployment scripts
private static void deploy(String namespace, String deployScriptConfigMapName) {
    LoggingFacade logger = getLogger();
    logger.info("Preparing to run deploy job using WLST");
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem(MOUNT_POINT + "/" + DEPLOY_SCRIPT) 
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem(MOUNT_POINT + "/" + DOMAIN_PROPERTIES); 
    logger.info("Running a Kubernetes job to deploy");
    assertDoesNotThrow(()
        -> createDeployJob(deployScriptConfigMapName, namespace, jobCreationContainer),
        "Deployment failed");
  }
private static void deploy ( String namespace , String deployScriptConfigMapName ) { LoggingFacade logger = getLogger ( ) ; logger . info ( "Preparing to run deploy job using WLST" ) ; V1Container jobCreationContainer = new V1Container ( ) . addCommandItem ( "/bin/sh" ) . addArgsItem ( "/u01/oracle/oracle_common/common/bin/wlst.sh" ) . addArgsItem ( MOUNT_POINT + "/" + DEPLOY_SCRIPT ) . addArgsItem ( "-skipWLSModuleScanning" ) . addArgsItem ( "-loadProperties" ) . addArgsItem ( MOUNT_POINT + "/" + DOMAIN_PROPERTIES ) ; logger . info ( "Running a Kubernetes job to deploy" ) ; assertDoesNotThrow ( ( ) -> createDeployJob ( deployScriptConfigMapName , namespace , jobCreationContainer ) , "Deployment failed" ) ; }
Deploy application by creating a job.
Deploy application by creating a job .
// create a V1Container with specific scripts and properties for creating domain //wlst deploy py script //domain property file