'Get the pod\'s creator from its metadata and returns a list of tags
in the form kube_$kind:$name, ready to add to the metrics'

def get_pod_creator_tags(self, pod_metadata, legacy_rep_controller_tag=False):

    try:
        tags = []
        (creator_kind, creator_name) = self.get_pod_creator(pod_metadata)
        if ((creator_kind in CREATOR_KIND_TO_TAG) and creator_name):
            tags.append(('%s:%s' % (CREATOR_KIND_TO_TAG[creator_kind], creator_name)))
            if (creator_kind == 'ReplicaSet'):
                deployment = self.get_deployment_for_replicaset(creator_name)
                if deployment:
                    tags.append(('%s:%s' % (CREATOR_KIND_TO_TAG['Deployment'], deployment)))
        if (legacy_rep_controller_tag and (creator_kind != 'ReplicationController') and creator_name):
            tags.append('kube_replication_controller:{0}'.format(creator_name))
        return tags
    except Exception:
        log.warning(('Could    not    parse    creator    tags    for    pod    ' + pod_metadata.get('name')))
        return []
