integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void callHelmInstall() throws Exception {
    String imagePullPolicy =
        System.getenv("IMAGE_PULL_POLICY_OPERATOR") != null
            ? System.getenv("IMAGE_PULL_POLICY_OPERATOR")
            : "IfNotPresent";
    StringBuffer cmd = new StringBuffer("");
    if (operatorMap.containsKey("operatorGitVersion")
        && operatorMap.containsKey("operatorGitVersionDir")) {
      TestUtils.execOrAbortProcess(
          "cd "
              + operatorMap.get("operatorGitVersionDir")
              + " && git clone -b "
              + operatorMap.get("operatorGitVersion")
              + " https://github.com/oracle/weblogic-kubernetes-operator");
      cmd.append("cd ");
      cmd.append(operatorMap.get("operatorGitVersionDir"))
          .append("/weblogic-kubernetes-operator");

      cmd.append(" && helm install ")
          .append(operatorMap.get("releaseName"))
          .append(" kubernetes/charts/weblogic-operator");
    } else {
      cmd.append("cd ");
      cmd.append(BaseTest.getProjectRoot());
      cmd.append(" && helm install ")
          .append(operatorMap.get("releaseName"))
          .append(" kubernetes/charts/weblogic-operator");
    }
    cmd.append(" --values ")
        .append(generatedInputYamlFile)
        .append(" --namespace ")
        .append(operatorNS)
        .append(" --set \"imagePullPolicy=")
        .append(imagePullPolicy)
        .append("\" ");
    cmd.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 install.
   *
   * @throws Exception on failure
   */
Call Helm install.
@throws Exception on failure
Call Helm install . @throws Exception on failure
public void callHelmInstall() throws Exception {
    String imagePullPolicy =
        System.getenv("IMAGE_PULL_POLICY_OPERATOR") != null
            ? System.getenv("IMAGE_PULL_POLICY_OPERATOR")
            : "IfNotPresent";
    StringBuffer cmd = new StringBuffer("");
    if (operatorMap.containsKey("operatorGitVersion")
        && operatorMap.containsKey("operatorGitVersionDir")) {
      TestUtils.execOrAbortProcess(
          "cd "
              + operatorMap.get("operatorGitVersionDir")
              + " && git clone -b "
              + operatorMap.get("operatorGitVersion")
              + " https://github.com/oracle/weblogic-kubernetes-operator");
      cmd.append("cd ");
      cmd.append(operatorMap.get("operatorGitVersionDir"))
          .append("/weblogic-kubernetes-operator");
      cmd.append(" && helm install ")
          .append(operatorMap.get("releaseName"))
          .append(" kubernetes/charts/weblogic-operator");
    } else {
      cmd.append("cd ");
      cmd.append(BaseTest.getProjectRoot());
      cmd.append(" && helm install ")
          .append(operatorMap.get("releaseName"))
          .append(" kubernetes/charts/weblogic-operator");
    }
    cmd.append(" --values ")
        .append(generatedInputYamlFile)
        .append(" --namespace ")
        .append(operatorNS)
        .append(" --set \"imagePullPolicy=")
        .append(imagePullPolicy)
        .append("\" ");
    cmd.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 callHelmInstall ( ) throws Exception { String imagePullPolicy = System . getenv ( "IMAGE_PULL_POLICY_OPERATOR" ) != null ? System . getenv ( "IMAGE_PULL_POLICY_OPERATOR" ) : "IfNotPresent" ; StringBuffer cmd = new StringBuffer ( "" ) ; if ( operatorMap . containsKey ( "operatorGitVersion" ) && operatorMap . containsKey ( "operatorGitVersionDir" ) ) { TestUtils . execOrAbortProcess ( "cd " + operatorMap . get ( "operatorGitVersionDir" ) + " && git clone -b " + operatorMap . get ( "operatorGitVersion" ) + " https://github.com/oracle/weblogic-kubernetes-operator" ) ; cmd . append ( "cd " ) ; cmd . append ( operatorMap . get ( "operatorGitVersionDir" ) ) . append ( "/weblogic-kubernetes-operator" ) ; cmd . append ( " && helm install " ) . append ( operatorMap . get ( "releaseName" ) ) . append ( " kubernetes/charts/weblogic-operator" ) ; } else { cmd . append ( "cd " ) ; cmd . append ( BaseTest . getProjectRoot ( ) ) ; cmd . append ( " && helm install " ) . append ( operatorMap . get ( "releaseName" ) ) . append ( " kubernetes/charts/weblogic-operator" ) ; } cmd . append ( " --values " ) . append ( generatedInputYamlFile ) . append ( " --namespace " ) . append ( operatorNS ) . append ( " --set \"imagePullPolicy=" ) . append ( imagePullPolicy ) . append ( "\" " ) ; cmd . 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 install.
Call Helm install .