Right now you have to declare your CRD in a YAML file to use it with the Kubernetes API, as well as manually create an instance of CustomResourceDefinition when creating the controller.
It would be very helpful to parse the YAML / JSON file that declares the custom resource and use that directly with the controller.