'Get all pods for a given component. Returns: list of pods.'

def get_pods_for_component(self, logging_component):

    pod_output = self.exec_oc('get    pods    -l    component={}    -o    json'.format(logging_component), [])
    try:
        pods = json.loads(pod_output)
        if ((not pods) or (not pods.get('items'))):
            raise ValueError()
    except ValueError:
        raise MissingComponentPods('There    are    no    "{}"    component    pods    in    the    "{}"    namespace.\nIs    logging    deployed?'.format(logging_component, self.logging_namespace()))
    return pods['items']
