docs: private static Pod getRandomPod(KubernetesClient client, String name, String namespace) {
          Endpoints endpoints = client.endpoints().inNamespace(namespace).withName(name).get();
          List<String> pods = new ArrayList<>();
          if (endpoints != null) {
              for (EndpointSubset subset : endpoints.getSubsets()) {
                  for (EndpointAddress address : subset.getAddresses()) {
                      if (address.getTargetRef() != null && POD.equals(address.getTargetRef().getKind())) {
                          String pod = address.getTargetRef().getName();
                          if (pod != null && !pod.isEmpty()) {
                              pods.add(pod);
                          }
                      }
                  }
              }
          }
          if (pods.isEmpty()) {
              return null;
          } else {
              String chosen = pods.get(RANDOM.nextInt(pods.size()));
              return client.pods().inNamespace(namespace).withName(chosen).get();
          }
      }