new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/IstioUtils.java
public static boolean deployHttpIstioGatewayAndVirtualservice(Path configPath) {
    LoggingFacade logger = getLogger();
    ExecResult result = null;
    StringBuffer deployIstioGateway = null;
    deployIstioGateway = new StringBuffer("kubectl apply -f ");
    deployIstioGateway.append(configPath);
    logger.info("deployIstioGateway: kubectl command {0}", new String(deployIstioGateway));
    try {
      result = exec(new String(deployIstioGateway), true);
    } catch (Exception ex) {
      logger.info("Exception in deployIstioGateway() {0}", ex);
      return false;
    }
    logger.info("deployIstioHttpGateway: kubectl returned {0}", result.toString());
    return !(result.stdout().contains("Error"));
  }
/**
   * Deploy the Http Istio Gateway and Istio virtual service.
   * @param configPath path to k8s configuration file 
   * @return true if deployment is success otherwise false
  */
Deploy the Http Istio Gateway and Istio virtual service.
@param configPath path to k8s configuration file
@return true if deployment is success otherwise false
Deploy the Http Istio Gateway and Istio virtual service . @param configPath path to k8s configuration file @return true if deployment is success otherwise false
public static boolean deployHttpIstioGatewayAndVirtualservice(Path configPath) {
    LoggingFacade logger = getLogger();
    ExecResult result = null;
    StringBuffer deployIstioGateway = null;
    deployIstioGateway = new StringBuffer("kubectl apply -f ");
    deployIstioGateway.append(configPath);
    logger.info("deployIstioGateway: kubectl command {0}", new String(deployIstioGateway));
    try {
      result = exec(new String(deployIstioGateway), true);
    } catch (Exception ex) {
      logger.info("Exception in deployIstioGateway() {0}", ex);
      return false;
    }
    logger.info("deployIstioHttpGateway: kubectl returned {0}", result.toString());
    return !(result.stdout().contains("Error"));
  }
public static boolean deployHttpIstioGatewayAndVirtualservice ( Path configPath ) { LoggingFacade logger = getLogger ( ) ; ExecResult result = null ; StringBuffer deployIstioGateway = null ; deployIstioGateway = new StringBuffer ( "kubectl apply -f " ) ; deployIstioGateway . append ( configPath ) ; logger . info ( "deployIstioGateway: kubectl command {0}" , new String ( deployIstioGateway ) ) ; try { result = exec ( new String ( deployIstioGateway ) , true ) ; } catch ( Exception ex ) { logger . info ( "Exception in deployIstioGateway() {0}" , ex ) ; return false ; } logger . info ( "deployIstioHttpGateway: kubectl returned {0}" , result . toString ( ) ) ; return ! ( result . stdout ( ) . contains ( "Error" ) ) ; }
Deploy the Http Istio Gateway and Istio virtual service.
Deploy the Http Istio Gateway and Istio virtual service .