'Get the pod\'s creator from its metadata and returns a
tuple (creator_kind, creator_name)
This allows for consitency across code path'

def get_pod_creator(self, pod_metadata):

    try:
        created_by = json.loads(pod_metadata['annotations']['kubernetes.io/created-by'])
        creator_kind = created_by.get('reference', {}).get('kind')
        creator_name = created_by.get('reference', {}).get('name')
        return (creator_kind, creator_name)
    except Exception:
        log.debug(('Could    not    parse    creator    for    pod    ' + pod_metadata.get('name', '')))
        return (None, None)
