class ListStorageClassExample {

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

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

    final ConfigBuilder configBuilder = new ConfigBuilder();
    if (args.length > 0) {
      configBuilder.withMasterUrl(args[0]);
    }
    try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {
      client.storage().v1().storageClasses().list().getItems()
          .forEach(sc -> logger.info("Storage class: {}", sc.getMetadata().getName()));
    } catch (KubernetesClientException e) {
      logger.error(e.getMessage(), e);
    }
  
<no_super_class>