class ReapPodLookupFilter implements Producer<Pod> {

    protected void appendPodsByPhaseStatusAndAge(PodPhase podPhase, List<Pod> resultPods)
    {
        List<Pod> pods = kubernetesPodFacade.lookupPods(namespace, Collections.singletonMap(STATUS_PHASE, podPhase.getLabel()));
        pods.stream()
            .filter(ReapPodLookupFilter::allContainerStatusesTerminated)
            .forEach(pod ->
            {
                FinalPodPhaseInfo podPhaseInfo = FinalPodPhaseInfo.fromPodStatus(pod.getMetadata().getName(), pod.getStatus());
                if(podPhaseInfo.phase.hasFinished())
                {
                    if(isPodPastAge(pod, reapUpperBoundUTC))
                        resultPods.add(pod);
                }
            });
    }

    public  ReapPodLookupFilter(KubernetesPodFacade kubernetesPodFacade, Instant reapUpperBoundUTC);

}