integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void callHelmUpgrade(String upgradeSet) throws Exception {
    StringBuffer cmd = new StringBuffer("cd ");
    cmd.append(BaseTest.getProjectRoot())
        .append(" && helm upgrade ")
        .append(operatorMap.get("releaseName"))
        .append(" kubernetes/charts/weblogic-operator ")
        .append(" --set \"")
        .append(upgradeSet)
        .append("\" --reuse-values ");
    cmd.append("--namespace ")
        .append(operatorMap.get("namespace"))
        .append(" --wait --timeout 3m0s");

    LoggerHelper.getLocal().log(Level.INFO, "Running " + cmd);
    ExecResult result = ExecCommand.exec(cmd.toString());
    if (result.exitValue() != 0) {
      reportHelmFailure(cmd.toString(), result);
    }
    String outputStr = result.stdout().trim();
    LoggerHelper.getLocal().log(Level.INFO, "Command returned " + outputStr);
  }
/**
   * Call Helm upgrade.
   *
   * @param upgradeSet upgrade properties
   * @throws Exception on failure
   */
Call Helm upgrade.
@param upgradeSet upgrade properties
@throws Exception on failure
Call Helm upgrade . @param upgradeSet upgrade properties @throws Exception on failure
public void callHelmUpgrade(String upgradeSet) throws Exception {
    StringBuffer cmd = new StringBuffer("cd ");
    cmd.append(BaseTest.getProjectRoot())
        .append(" && helm upgrade ")
        .append(operatorMap.get("releaseName"))
        .append(" kubernetes/charts/weblogic-operator ")
        .append(" --set \"")
        .append(upgradeSet)
        .append("\" --reuse-values ");
    cmd.append("--namespace ")
        .append(operatorMap.get("namespace"))
        .append(" --wait --timeout 3m0s");
    LoggerHelper.getLocal().log(Level.INFO, "Running " + cmd);
    ExecResult result = ExecCommand.exec(cmd.toString());
    if (result.exitValue() != 0) {
      reportHelmFailure(cmd.toString(), result);
    }
    String outputStr = result.stdout().trim();
    LoggerHelper.getLocal().log(Level.INFO, "Command returned " + outputStr);
  }
public void callHelmUpgrade ( String upgradeSet ) throws Exception { StringBuffer cmd = new StringBuffer ( "cd " ) ; cmd . append ( BaseTest . getProjectRoot ( ) ) . append ( " && helm upgrade " ) . append ( operatorMap . get ( "releaseName" ) ) . append ( " kubernetes/charts/weblogic-operator " ) . append ( " --set \"" ) . append ( upgradeSet ) . append ( "\" --reuse-values " ) ; cmd . append ( "--namespace " ) . append ( operatorMap . get ( "namespace" ) ) . append ( " --wait --timeout 3m0s" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Running " + cmd ) ; ExecResult result = ExecCommand . exec ( cmd . toString ( ) ) ; if ( result . exitValue ( ) != 0 ) { reportHelmFailure ( cmd . toString ( ) , result ) ; } String outputStr = result . stdout ( ) . trim ( ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Command returned " + outputStr ) ; }
Call Helm upgrade.
Call Helm upgrade .