  def GetCoveredNodes(self) -> List[K8sNode]:
    """Gets a list of Kubernetes nodes covered by this workload.

    Returns:
      List[K8sNode]: A list of nodes covered by this workload.
    """
    nodes_by_name = {}  # type: Dict[str, K8sNode]
    for pod in self.GetCoveredPods():
      node = pod.GetNode()
      nodes_by_name[node.name] = node
    return list(nodes_by_name.values())
Gets a list of Kubernetes nodes covered by this workload.

Returns:
List[K8sNode]: A list of nodes covered by this workload.
libcloudforensics/providers/kubernetes/base.py