new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static V1PodList listPods(String namespace, String labelSelectors) throws ApiException {
    V1PodList v1PodList = null;
    try {
      v1PodList
              = coreV1Api.listNamespacedPod(
              namespace, // namespace in which to look for the pods.
              Boolean.FALSE.toString(), // pretty print output.
              Boolean.FALSE, // allowWatchBookmarks requests watch events with type "BOOKMARK".
              null, // continue to query when there is more results to return.
              null, // selector to restrict the list of returned objects by their fields
              labelSelectors, // selector to restrict the list of returned objects by their labels.
              null, // maximum number of responses to return for a list call.
              null, // shows changes that occur after that particular version of a resource.
              null, // Timeout for the list/watch call.
              Boolean.FALSE // Watch for changes to the described resources.
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return v1PodList;
  }
/**
   * List all pods in given namespace.
   *
   * @param namespace Namespace in which to list all pods
   * @param labelSelectors with which the pods are decorated
   * @return V1PodList list of pods or NULL when there is an error
   * @throws ApiException when there is error in querying the cluster
   */
List all pods in given namespace.
@param namespace Namespace in which to list all pods
@param labelSelectors with which the pods are decorated
@return V1PodList list of pods or NULL when there is an error
@throws ApiException when there is error in querying the cluster
List all pods in given namespace . @param namespace Namespace in which to list all pods @param labelSelectors with which the pods are decorated @return V1PodList list of pods or NULL when there is an error @throws ApiException when there is error in querying the cluster
public static V1PodList listPods(String namespace, String labelSelectors) throws ApiException {
    V1PodList v1PodList = null;
    try {
      v1PodList
              = coreV1Api.listNamespacedPod(
              namespace, 
              Boolean.FALSE.toString(), 
              Boolean.FALSE, 
              null, 
              null, 
              labelSelectors, 
              null, 
              null, 
              null, 
              Boolean.FALSE 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return v1PodList;
  }
public static V1PodList listPods ( String namespace , String labelSelectors ) throws ApiException { V1PodList v1PodList = null ; try { v1PodList = coreV1Api . listNamespacedPod ( namespace , Boolean . FALSE . toString ( ) , Boolean . FALSE , null , null , labelSelectors , null , null , null , Boolean . FALSE ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return v1PodList ; }
List all pods in given namespace.
List all pods in given namespace .
// namespace in which to look for the pods. // pretty print output. // allowWatchBookmarks requests watch events with type "BOOKMARK". // continue to query when there is more results to return. // selector to restrict the list of returned objects by their fields // selector to restrict the list of returned objects by their labels. // maximum number of responses to return for a list call. // shows changes that occur after that particular version of a resource. // Timeout for the list/watch call. // Watch for changes to the described resources.