code: public void awaitPodReadinessOrFail(Predicate<Pod> filter) {
          await().atMost(5, TimeUnit.MINUTES).until(() -> {
                  List<Pod> list = client.pods().inNamespace(namespace).list().getItems();
                  return list.stream()
                      .filter(filter)
                      .filter(Readiness::isPodReady)
                      .collect(Collectors.toList()).size() >= 1;
              }
          );
      }
docs: Awaits at most 5 minutes until all pods meets the given predicate.
  
  @param filter used to wait to detect that a pod is up and running.