'Get a part of a pod config from the kubernetes API'

def get_kube_config(self, c_id, key):

    for pod in self.kube_pods:
        c_statuses = pod.get('status', {}).get('containerStatuses', [])
        for status in c_statuses:
            if (c_id == status.get('containerID', '').split('//')[(-1)]):
                return pod.get(key, {})
    return {}
