class PodListFilterByLabel {
  private static final Logger logger = LoggerFactory.getLogger(PodListFilterByLabel.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (final KubernetesClient k8s = new KubernetesClientBuilder().build()) {
      k8s.pods().inNamespace("default")
          .withLabel("version", "v1")
          .list()
          .getItems()
          .stream()
          .map(Pod::getMetadata)
          .map(ObjectMeta::getName)
          .forEach(logger::info);
    }
  
<no_super_class>