  def FindWorkload(self, name: str,
                   namespace: str) -> Optional[base.K8sWorkload]:
    """Finds a workload in this cluster by its name and namespace.

    This method relies on the workloads listed in `self.AllWorkloads`.

    Args:
      name (str): The name of the workload.
      namespace (str): The namespace of the workload.

    Returns:
      base.K8sWorkload: Optional. A workload with the matching name and
          namespace.
    """
    for workload in self.AllWorkloads(namespace=namespace):
      if workload.name == name and workload.namespace == namespace:
        return workload
    return None
Finds a workload in this cluster by its name and namespace.

This method relies on the workloads listed in `self.AllWorkloads`.

Args:
name (str): The name of the workload.
namespace (str): The namespace of the workload.

Returns:
base.K8sWorkload: Optional. A workload with the matching name and
namespace.
libcloudforensics/providers/kubernetes/cluster.py