  def AllWorkloads(self,
                   namespace: Optional[str]) -> Iterable[base.K8sWorkload]:
    """Lists all workloads in this cluster.

    Currently supported workloads are deployments, replica sets and pods, and
    are listed in that order.

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

    Yields:
      Iterable[base.K8sWorkload]: An iterator for this cluster's workloads.
    """
    yield from self.ListDeployments(namespace=namespace)
    yield from self.ListReplicaSets(namespace=namespace)
    yield from self.ListPods(namespace=namespace)
Lists all workloads in this cluster.

Currently supported workloads are deployments, replica sets and pods, and
are listed in that order.

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

Yields:
Iterable[base.K8sWorkload]: An iterator for this cluster's workloads.
libcloudforensics/providers/kubernetes/cluster.py