integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void checkLoadBalancer() throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Checking LoadBalancer  ");

    String lbName = getLoadBalancerName().toLowerCase();
    TestUtils.printHelmChartInfo(lbName + "-operator", lbName);
    String lbPod = TestUtils.getPodName(" -l app=" + lbName, lbName);
    TestUtils.checkPodReadyAndRunning(lbPod,lbName);
    TestUtils.writePodLog(resultsDir + "/state-dump-logs/", lbPod, lbName);
    LoggerHelper.getLocal().log(Level.INFO, "Checking if Ingress is Running  ");
    String ingress = "ingress";
    if (lbName.equals("voyager")) {
      ingress = "ingress.voyager.appscode.com";
    }
    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl get ")
        .append(ingress)
        .append(" -n ")
        .append(getDomainNs())
        .append(" | grep ")
        .append(getDomainUid());
    TestUtils.checkAnyCmdInLoop(cmd.toString(),getDomainUid() + "-" + lbName);
  }
/** Check LB related helm charts and pods statuses.
   *
   * @throws Exception if LB related charts are failed to retrieve.
   */
Check LB related helm charts and pods statuses.
@throws Exception if LB related charts are failed to retrieve.
Check LB related helm charts and pods statuses . @throws Exception if LB related charts are failed to retrieve .
public void checkLoadBalancer() throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Checking LoadBalancer  ");
    String lbName = getLoadBalancerName().toLowerCase();
    TestUtils.printHelmChartInfo(lbName + "-operator", lbName);
    String lbPod = TestUtils.getPodName(" -l app=" + lbName, lbName);
    TestUtils.checkPodReadyAndRunning(lbPod,lbName);
    TestUtils.writePodLog(resultsDir + "/state-dump-logs/", lbPod, lbName);
    LoggerHelper.getLocal().log(Level.INFO, "Checking if Ingress is Running  ");
    String ingress = "ingress";
    if (lbName.equals("voyager")) {
      ingress = "ingress.voyager.appscode.com";
    }
    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl get ")
        .append(ingress)
        .append(" -n ")
        .append(getDomainNs())
        .append(" | grep ")
        .append(getDomainUid());
    TestUtils.checkAnyCmdInLoop(cmd.toString(),getDomainUid() + "-" + lbName);
  }
public void checkLoadBalancer ( ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking LoadBalancer  " ) ; String lbName = getLoadBalancerName ( ) . toLowerCase ( ) ; TestUtils . printHelmChartInfo ( lbName + "-operator" , lbName ) ; String lbPod = TestUtils . getPodName ( " -l app=" + lbName , lbName ) ; TestUtils . checkPodReadyAndRunning ( lbPod , lbName ) ; TestUtils . writePodLog ( resultsDir + "/state-dump-logs/" , lbPod , lbName ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if Ingress is Running  " ) ; String ingress = "ingress" ; if ( lbName . equals ( "voyager" ) ) { ingress = "ingress.voyager.appscode.com" ; } StringBuffer cmd = new StringBuffer ( ) ; cmd . append ( "kubectl get " ) . append ( ingress ) . append ( " -n " ) . append ( getDomainNs ( ) ) . append ( " | grep " ) . append ( getDomainUid ( ) ) ; TestUtils . checkAnyCmdInLoop ( cmd . toString ( ) , getDomainUid ( ) + "-" + lbName ) ; }
Check LB related helm charts and pods statuses.
Check LB related helm charts and pods statuses .