integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static String describeService(String namespace, String serviceName) throws Exception {
    StringBuffer cmd = new StringBuffer("kubectl describe service ");
    cmd.append(serviceName);
    cmd.append(" -n ").append(namespace);
    LoggerHelper.getLocal().log(Level.INFO,
        " Describe service "
            + serviceName
            + " in namespage "
            + namespace
            + " with command: '"
            + cmd
            + "'");

    ExecResult result = ExecCommand.exec(cmd.toString());
    String stdout = result.stdout();
    LoggerHelper.getLocal().log(Level.INFO, " Service " + serviceName + " found: ");
    LoggerHelper.getLocal().log(Level.INFO, stdout);
    return stdout;
  }
/**
   * kubectl describe service serviceName -n namespace.
   *
   * @param namespace   namespace where the service is located
   * @param serviceName name of the service to be described
   * @return String containing output of the kubectl describe service command
   * @throws Exception exception
   */
kubectl describe service serviceName -n namespace.
@param namespace   namespace where the service is located
@param serviceName name of the service to be described
@return String containing output of the kubectl describe service command
@throws Exception exception
kubectl describe service serviceName - n namespace . @param namespace namespace where the service is located @param serviceName name of the service to be described @return String containing output of the kubectl describe service command @throws Exception exception
public static String describeService(String namespace, String serviceName) throws Exception {
    StringBuffer cmd = new StringBuffer("kubectl describe service ");
    cmd.append(serviceName);
    cmd.append(" -n ").append(namespace);
    LoggerHelper.getLocal().log(Level.INFO,
        " Describe service "
            + serviceName
            + " in namespage "
            + namespace
            + " with command: '"
            + cmd
            + "'");
    ExecResult result = ExecCommand.exec(cmd.toString());
    String stdout = result.stdout();
    LoggerHelper.getLocal().log(Level.INFO, " Service " + serviceName + " found: ");
    LoggerHelper.getLocal().log(Level.INFO, stdout);
    return stdout;
  }
public static String describeService ( String namespace , String serviceName ) throws Exception { StringBuffer cmd = new StringBuffer ( "kubectl describe service " ) ; cmd . append ( serviceName ) ; cmd . append ( " -n " ) . append ( namespace ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Describe service " + serviceName + " in namespage " + namespace + " with command: '" + cmd + "'" ) ; ExecResult result = ExecCommand . exec ( cmd . toString ( ) ) ; String stdout = result . stdout ( ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , " Service " + serviceName + " found: " ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , stdout ) ; return stdout ; }
kubectl describe service serviceName -n namespace.
kubectl describe service serviceName - n namespace .