3 ms·
RCL has control flow and types: https://rcl-lang.org/ https://rcl-lang.org/. No record types yet though, so they are not yet very useful to validate e.g. a Kube
by ruuda 2y ago
RCL has control flow and types: https://rcl-lang.org/ https://rcl-lang.org/. No record types yet though, so they are not yet very useful to validate e.g. a Kubernetes manifest against a schema.
- andix 2y agoLooks a lot like Jsonnet. This is going into the direction I'm talking about. Is there also some typing-checking/code-completion available for Kubernetes resources? I think this would be an essential part to improve developer experience and automatic checks. Some linter to validate the k8s manifests must be a part of a solution. It's possible to check the output, but a perfect solution would also lint the RCL source code and highlight the sections that generate invalid manifests.
- ruuda 2y agoAt the moment nothing like that exists. Eventually it should be possible to generate RCL types like https://github.com/dhall-lang/dhall-kubernetes https://github.com/dhall-lang/dhall-kubernetes does for Dhall.
- andix 2y agoI was just comparing different approaches and stumbled upon KCL. Might be worth a look: https://www.kcl-lang.io/docs/user_docs/getting-started/intro https://www.kcl-lang.io/docs/user_docs/getting-started/intro