-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for CRDs #1
Comments
native support for CRDs is still not there, but there is a fallback to unstructured #10 |
@wozniakjan Great work! Really interesting to read how you solved the CRDs puzzle with unstructured. Too bad I didn't know about this project earlier, we had to build our own https://github.com/volvo-cars/lingon This is the best I could come up with https://github.com/volvo-cars/lingon/blob/main/docs/kubernetes/crd/readme.md As you can see in the code, we need to register the CRDs with I haven't found a better way to deal with those CRDs. I would love to have to opinion on the matter. |
hey @veggiemonk, glad you like it :)
and it's pretty much exactly what I would like to do here using AST parser and |
Thank you 😄 Indeed, I saw Another idea was to use the JSON schema to construct the custom resources in Go, a little bit like CUE does it, but that's another rabbit hole. Do you actually use the generated Go code? Or is this project just for fun? In any case, I was really happy to have found your project. Happy to discuss it more. |
I had two cases so far where I used this, it started due to this task (albeit was superseded by an alternative approach) kubermatic/kubermatic#7413. But in another project, it did see production use - kyma-incubator/reconciler#722. |
This currently has no support for CRDs, but I suspect adding CRDs to the scheme should be sufficient.
reverse-kube-resource/pkg/processor.go
Lines 355 to 359 in 0fb3b09
The plan is to look for these patterns from apimachinery and/or controller-runtime
The text was updated successfully, but these errors were encountered: