class CRDLoadExample {

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

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

    try (final KubernetesClient client = new KubernetesClientBuilder().build()) {
      // List all Custom resources.
      logger.info("Listing all current Custom Resource Definitions :");
      CustomResourceDefinitionList crdList = client.apiextensions().v1().customResourceDefinitions().list();
      crdList.getItems().forEach(crd -> logger.info(crd.getMetadata().getName()));

      // Creating a custom resource from yaml
      CustomResourceDefinition aCustomResourceDefinition = client.apiextensions().v1().customResourceDefinitions()
          .load(CRDLoadExample.class.getResourceAsStream("/crd.yml")).item();
      logger.info("Creating CRD...");
      client.apiextensions().v1().customResourceDefinitions().resource(aCustomResourceDefinition).create();

      logger.info("Updated Custom Resource Definitions: ");
      client.apiextensions().v1().customResourceDefinitions().list().getItems()
          .forEach(crd -> logger.info(crd.getMetadata().getName()));

    }
  
<no_super_class>