This snippet, provided by @gshefer, demonstrates the desired data structure:
def pods_per_ready_status(self):
"""Grabing the Container Statuses Summary of the pods from API"""
# TODO: Add later this logic to wrapanapi
entities_j = self.mgmt.api.get('pod')[1]['items']
out = {}
for entity_j in entities_j:
out[entity_j['metadata']['name']] = {
condition['type']: eval_strings([condition['status']]).pop()
for condition in entity_j['status'].get('conditions', [])
}
return out