func ContainsADIdentifier(c *Container) bool {
	var exists bool
	_, exists = c.container.Config.Labels[configPath]
	if exists {
		return true
	}
	kubeutil, err := kubelet.GetKubeUtil()
	if err != nil {
		return false
	}
	entityID := c.service.GetEntityID()
	pod, err := kubeutil.GetPodForEntityID(context.TODO(), entityID)
	if err != nil {
		return false
	}
	for _, container := range pod.Status.GetAllContainers() {
		if container.ID == entityID {
			// looks for the container name specified in the pod manifest as it's different from the name of the container
			// returns by a docker inspect which is a concatenation of the container name specified in the pod manifest and a hash
			_, exists = pod.Metadata.Annotations[annotationConfigPath(container.Name)]
			return exists
		}
	}
	return false
}
// ContainsADIdentifier returns true if the container contains an autodiscovery identifier,
// searching first in the docker labels, then in the pod specs.
ContainsADIdentifier returns true if the container contains an autodiscovery identifier,
searching first in the docker labels, then in the pod specs.
// ContainsADIdentifier returns true if the container contains an autodiscovery identifier // searching first in the docker labels then in the pod specs .
func ContainsADIdentifier(c *Container) bool {
	var exists bool
	_, exists = c.container.Config.Labels[configPath]
	if exists {
		return true
	}
	kubeutil, err := kubelet.GetKubeUtil()
	if err != nil {
		return false
	}
	entityID := c.service.GetEntityID()
	pod, err := kubeutil.GetPodForEntityID(context.TODO(), entityID)
	if err != nil {
		return false
	}
	for _, container := range pod.Status.GetAllContainers() {
		if container.ID == entityID {
			_, exists = pod.Metadata.Annotations[annotationConfigPath(container.Name)]
			return exists
		}
	}
	return false
}
func ContainsADIdentifier ( c * Container ) bool { var exists bool _ , exists = c . container . Config . Labels [ configPath ] if exists { return true } kubeutil , err := kubelet . GetKubeUtil ( ) if err != nil { return false } entityID := c . service . GetEntityID ( ) pod , err := kubeutil . GetPodForEntityID ( context . TODO ( ) , entityID ) if err != nil { return false } for _ , container := range pod . Status . GetAllContainers ( ) { if container . ID == entityID { _ , exists = pod . Metadata . Annotations [ annotationConfigPath ( container . Name ) ] return exists } } return false }
ContainsADIdentifier returns true if the container contains an autodiscovery identifier,
searching first in the docker labels, then in the pod specs.
ContainsADIdentifier returns true if the container contains an autodiscovery identifier searching first in the docker labels then in the pod specs .
// looks for the container name specified in the pod manifest as it's different from the name of the container // returns by a docker inspect which is a concatenation of the container name specified in the pod manifest and a hash