-
Notifications
You must be signed in to change notification settings - Fork 30
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
Validate custom resources without having to manually define modules for them #36
Comments
I am currently using IFD to achieve that. I am not sure how I exactly I came up with it but it works for my usecase: https://gist.github.com/felixscheinost/9e7fc4370fe1ce2dfbe6efb0e75d4f4f How I use is that I have a folder with only CRDs and other folders for other manifests which make use of those manifests:
Both
All files in |
@felixscheinost thanks for sharing! Given that kubenix uses IFD for helm charts already I don’t think using it the way you have is a problem. I guess this could be adapted to not use IFD if the CRD schemas are known in advance. |
Alternatively we could use the python-openapi and add some nix templates to generate nix options for any openapi spec. I need CRDs for rook, kubevirt and some other CDRs. Maybe the istio generator can be generalized enough for easier adding more CDRs. |
Any update on this? :) |
Currently, if custom resources are being used, they have to be specified manually using
kubernetes.customTypes
. \Furthermore, custom resources won't be validated at build time without manually defining a nix module in
kubernetes.customTypes.*.module
. This is redundant since CRDs already define the schema.It would be nice to not have to do any of the above. Some potential avenues:
The text was updated successfully, but these errors were encountered: