integration-tests/src/test/java/oracle/kubernetes/operator/utils/LoadBalancer.java
public void createTraefikHostRouting() throws Exception {

    createInputFile(
        BaseTest.getProjectRoot()
            + "/integration-tests/src/test/resources/charts/traefik/host-routing.yaml",
        userProjectsDir
            + "/load-balancers/"
            + lbMap.get("domainUID")
            + "/host-routing.yaml");

    String cmdLb =
        "kubectl create -f "
            + userProjectsDir
            + "/load-balancers/"
            + lbMap.get("domainUID")
            + "/host-routing.yaml";
    LoggerHelper.getLocal().log(Level.INFO, "Executing cmd " + cmdLb);

    ExecResult result = ExecCommand.exec(cmdLb);
    if (result.exitValue() != 0) {
      throw new RuntimeException(
          "FAILURE: command to create ingress host routing "
              + cmdLb
              + " failed, returned "
              + result.stdout()
              + result.stderr());
    }
  }
/**
   * Create Traefik host routing.
   * @throws Exception on failure
   */
Create Traefik host routing.
@throws Exception on failure
Create Traefik host routing . @throws Exception on failure
public void createTraefikHostRouting() throws Exception {
    createInputFile(
        BaseTest.getProjectRoot()
            + "/integration-tests/src/test/resources/charts/traefik/host-routing.yaml",
        userProjectsDir
            + "/load-balancers/"
            + lbMap.get("domainUID")
            + "/host-routing.yaml");
    String cmdLb =
        "kubectl create -f "
            + userProjectsDir
            + "/load-balancers/"
            + lbMap.get("domainUID")
            + "/host-routing.yaml";
    LoggerHelper.getLocal().log(Level.INFO, "Executing cmd " + cmdLb);
    ExecResult result = ExecCommand.exec(cmdLb);
    if (result.exitValue() != 0) {
      throw new RuntimeException(
          "FAILURE: command to create ingress host routing "
              + cmdLb
              + " failed, returned "
              + result.stdout()
              + result.stderr());
    }
  }
public void createTraefikHostRouting ( ) throws Exception { createInputFile ( BaseTest . getProjectRoot ( ) + "/integration-tests/src/test/resources/charts/traefik/host-routing.yaml" , userProjectsDir + "/load-balancers/" + lbMap . get ( "domainUID" ) + "/host-routing.yaml" ) ; String cmdLb = "kubectl create -f " + userProjectsDir + "/load-balancers/" + lbMap . get ( "domainUID" ) + "/host-routing.yaml" ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Executing cmd " + cmdLb ) ; ExecResult result = ExecCommand . exec ( cmdLb ) ; if ( result . exitValue ( ) != 0 ) { throw new RuntimeException ( "FAILURE: command to create ingress host routing " + cmdLb + " failed, returned " + result . stdout ( ) + result . stderr ( ) ) ; } }
Create Traefik host routing.
Create Traefik host routing .