  def GetCoveredPods(self) -> List[base.K8sPod]:
    """Override of abstract method."""
    api = self._Api(client.CoreV1Api)

    labels_selector = selector.K8sSelector.FromLabelsDict(
        self._PodMatchLabels())

    pods = api.list_namespaced_pod(
        self.namespace, **labels_selector.ToKeywords())

    return [
        base.K8sPod(
            self._api_client, pod.metadata.name, pod.metadata.namespace)
        for pod in pods.items
    ]
Override of abstract method.
libcloudforensics/providers/kubernetes/workloads.py