integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void printHelmChartInfo(String chartName, String chartNS) throws Exception {

    LoggerHelper.getLocal().log(Level.INFO, " Checking info for Release "
            + chartName);
    String cmd = "helm history " + chartName + " --namespace " + chartNS;
    ExecResult result = ExecCommand.exec(cmd);
    if (result.exitValue() != 0) {
      throw new Exception(
          "FAILURE: Command "
              + cmd
              + " failed with stderr = "
              + result.stderr()
              + " \n stdout = "
              + result.stdout());
    }
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " history "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm test " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " info "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm status " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " status "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm get values " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " values : "
        + result.stdout()
        + result.stderr()
    );
    cmd = "kubectl get pods " + " -n " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Pod for HelmChart Release "
        + chartName
        + " info "
        + result.stdout()
        + result.stderr()
    );
  }
/**
   * Print the info for provided helm chart.
   *
   * @param chartName  helm chart name
   * @param chartNS helm chart namespace
   * @throws Exception if chart info can't be retrieved.
   */
Print the info for provided helm chart.
@param chartName  helm chart name
@param chartNS helm chart namespace
@throws Exception if chart info can't be retrieved.
Print the info for provided helm chart . @param chartName helm chart name @param chartNS helm chart namespace @throws Exception if chart info can ' t be retrieved .
public static void printHelmChartInfo(String chartName, String chartNS) throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, " Checking info for Release "
            + chartName);
    String cmd = "helm history " + chartName + " --namespace " + chartNS;
    ExecResult result = ExecCommand.exec(cmd);
    if (result.exitValue() != 0) {
      throw new Exception(
          "FAILURE: Command "
              + cmd
              + " failed with stderr = "
              + result.stderr()
              + " \n stdout = "
              + result.stdout());
    }
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " history "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm test " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " info "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm status " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " status "
        + result.stdout()
        + result.stderr()
    );
    cmd = "helm get values " + chartName + " --namespace " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Release "
        + chartName
        + " values : "
        + result.stdout()
        + result.stderr()
    );
    cmd = "kubectl get pods " + " -n " + chartNS;
    result = ExecCommand.exec(cmd);
    LoggerHelper.getLocal().log(Level.INFO, " Pod for HelmChart Release "
        + chartName
        + " info "
        + result.stdout()
        + result.stderr()
    );
  }
public static void printHelmChartInfo ( String chartName , String chartNS ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , " Checking info for Release " + chartName ) ; String cmd = "helm history " + chartName + " --namespace " + chartNS ; ExecResult result = ExecCommand . exec ( cmd ) ; if ( result . exitValue ( ) != 0 ) { throw new Exception ( "FAILURE: Command " + cmd + " failed with stderr = " + result . stderr ( ) + " \n stdout = " + result . stdout ( ) ) ; } LoggerHelper . getLocal ( ) . log ( Level . INFO , " Release " + chartName + " history " + result . stdout ( ) + result . stderr ( ) ) ; cmd = "helm test " + chartName + " --namespace " + chartNS ; result = ExecCommand . exec ( cmd ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Release " + chartName + " info " + result . stdout ( ) + result . stderr ( ) ) ; cmd = "helm status " + chartName + " --namespace " + chartNS ; result = ExecCommand . exec ( cmd ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Release " + chartName + " status " + result . stdout ( ) + result . stderr ( ) ) ; cmd = "helm get values " + chartName + " --namespace " + chartNS ; result = ExecCommand . exec ( cmd ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Release " + chartName + " values : " + result . stdout ( ) + result . stderr ( ) ) ; cmd = "kubectl get pods " + " -n " + chartNS ; result = ExecCommand . exec ( cmd ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Pod for HelmChart Release " + chartName + " info " + result . stdout ( ) + result . stderr ( ) ) ; }
Print the info for provided helm chart.
Print the info for provided helm chart .