integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void destroy() throws Exception {
    String cmd = "helm uninstall " + operatorMap.get("releaseName") + " --namespace " + operatorMap.get("namespace");

    ExecResult result = ExecCommand.exec(cmd);
    if (result.exitValue() != 0) {
      throw new RuntimeException(
          "FAILURE: command " + cmd + " failed, returned " + result.stderr());
    }
    LoggerHelper.getLocal().log(Level.INFO, "Checking REST service is deleted");
    runCommandInLoop("kubectl get services -n " + operatorNS + " | egrep weblogic-operator-svc ");
  }
/**
   * delete operator helm release.
   *
   * @throws Exception exception
   */
delete operator helm release.
@throws Exception exception
delete operator helm release . @throws Exception exception
public void destroy() throws Exception {
    String cmd = "helm uninstall " + operatorMap.get("releaseName") + " --namespace " + operatorMap.get("namespace");
    ExecResult result = ExecCommand.exec(cmd);
    if (result.exitValue() != 0) {
      throw new RuntimeException(
          "FAILURE: command " + cmd + " failed, returned " + result.stderr());
    }
    LoggerHelper.getLocal().log(Level.INFO, "Checking REST service is deleted");
    runCommandInLoop("kubectl get services -n " + operatorNS + " | egrep weblogic-operator-svc ");
  }
public void destroy ( ) throws Exception { String cmd = "helm uninstall " + operatorMap . get ( "releaseName" ) + " --namespace " + operatorMap . get ( "namespace" ) ; ExecResult result = ExecCommand . exec ( cmd ) ; if ( result . exitValue ( ) != 0 ) { throw new RuntimeException ( "FAILURE: command " + cmd + " failed, returned " + result . stderr ( ) ) ; } LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking REST service is deleted" ) ; runCommandInLoop ( "kubectl get services -n " + operatorNS + " | egrep weblogic-operator-svc " ) ; }
delete operator helm release.
delete operator helm release .