  def ListPods(self, namespace: Optional[str] = None) -> List[base.K8sPod]:
    """Lists the pods in this cluster.

    Args:
      namespace (str): Optional. The namespace in which to list the pods. If not
          specified, pods are listed in all namespaces.

    Returns:
      List[base.K8sPod]: The list of pods.
    """
    api = self._Api(client.CoreV1Api)
    if namespace is not None:
      pods = api.list_namespaced_pod(namespace)
    else:
      pods = api.list_pod_for_all_namespaces()
    return [
        base.K8sPod(
            self._api_client, pod.metadata.name, pod.metadata.namespace)
        for pod in pods.items
    ]
Lists the pods in this cluster.

Args:
namespace (str): Optional. The namespace in which to list the pods. If not
specified, pods are listed in all namespaces.

Returns:
List[base.K8sPod]: The list of pods.
libcloudforensics/providers/kubernetes/cluster.py