integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void writePodLog(String logLocation) throws Exception {
    //create dir
    TestUtils.execOrAbortProcess("mkdir -p " + logLocation);

    //write operator pod describe
    String cmd = "kubectl describe pod " + getOperatorPodName() + " -n "
        + getOperatorNamespace() + " >> " + logLocation
        + "/pod-describe." + operatorNS + "." + getOperatorPodName();
    ExecCommand.exec(cmd);

    //write operator pod logs
    cmd = "kubectl logs pod/" + getOperatorPodName() + " -n "
        + getOperatorNamespace() + " >> " + logLocation
        + "/pod-log." + operatorNS + "." + getOperatorPodName();
    ExecCommand.exec(cmd);
  }
/**
   * writes operator pod describe and logs to a file.
   *
   * @param logLocation - location where the logs to be written
   */
writes operator pod describe and logs to a file.
@param logLocation - location where the logs to be written
writes operator pod describe and logs to a file . @param logLocation - location where the logs to be written
public void writePodLog(String logLocation) throws Exception {
    TestUtils.execOrAbortProcess("mkdir -p " + logLocation);
    String cmd = "kubectl describe pod " + getOperatorPodName() + " -n "
        + getOperatorNamespace() + " >> " + logLocation
        + "/pod-describe." + operatorNS + "." + getOperatorPodName();
    ExecCommand.exec(cmd);
    cmd = "kubectl logs pod/" + getOperatorPodName() + " -n "
        + getOperatorNamespace() + " >> " + logLocation
        + "/pod-log." + operatorNS + "." + getOperatorPodName();
    ExecCommand.exec(cmd);
  }
public void writePodLog ( String logLocation ) throws Exception { TestUtils . execOrAbortProcess ( "mkdir -p " + logLocation ) ; String cmd = "kubectl describe pod " + getOperatorPodName ( ) + " -n " + getOperatorNamespace ( ) + " >> " + logLocation + "/pod-describe." + operatorNS + "." + getOperatorPodName ( ) ; ExecCommand . exec ( cmd ) ; cmd = "kubectl logs pod/" + getOperatorPodName ( ) + " -n " + getOperatorNamespace ( ) + " >> " + logLocation + "/pod-log." + operatorNS + "." + getOperatorPodName ( ) ; ExecCommand . exec ( cmd ) ; }
writes operator pod describe and logs to a file.
writes operator pod describe and logs to a file .
//create dir //write operator pod describe //write operator pod logs