engineerd / kubecontroller-csharp

Lightweight Kubernetes controller for CRDs
https://radu-matei.com/blog/kubernetes-controller-csharp/
38 stars 9 forks source link

Create `CustomResourceDefinition` at runtime based on file definition #4

Open radu-matei opened 4 years ago

radu-matei commented 4 years ago

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.

alexeyzimarev commented 3 years ago

I believe that manually creating CRDs is totally fine. Controller-based software like the latest cert-manager and Prometheus Operator do that too. Creating CDR YAML files from C# types would be nice, but it's also quite easy to do using the YAML serialiser.