(self, labels)
return self.pod_list_utils.get_uid_by_name_tuple((namespace, pod_name))
Return the id of a pod
        :param labels:
        :return: str or None
Return the id of a pod
        :param labels:
        :return: str or None
Return the id of a pod : param labels : : return : str or None
def _get_pod_uid(self, labels):
        """
        Return the id of a pod
        :param labels:
        :return: str or None
        """
        namespace = CadvisorPrometheusScraperMixin._get_container_label(labels, "namespace")
        pod_name = CadvisorPrometheusScraperMixin._get_container_label(labels, "pod")
        # k8s < 1.16
        if not pod_name:
            pod_name = CadvisorPrometheusScraperMixin._get_container_label(labels, "pod_name")
        return self.pod_list_utils.get_uid_by_name_tuple((namespace, pod_name))
def _get_pod_uid ( self , labels ) : namespace = CadvisorPrometheusScraperMixin . _get_container_label ( labels , "namespace" ) pod_name = CadvisorPrometheusScraperMixin . _get_container_label ( labels , "pod" ) # k8s < 1.16 if not pod_name : pod_name = CadvisorPrometheusScraperMixin . _get_container_label ( labels , "pod_name" ) return self . pod_list_utils . get_uid_by_name_tuple ( ( namespace , pod_name ) )