TristanCacqueray / dhall-openshift

Typecheck, template and modularize your OpenShift definitions with Dhall
Apache License 2.0
8 stars 0 forks source link

Generate Dhall schemas for multiple Kubernetes versions #3

Open PierreR opened 4 years ago

PierreR commented 4 years ago

Would it possible to generate the dhall schema for multiple version of k8s ?

If it is too much work, it would be nice to specify in the README the K8s version that is followed (I guess it is currently the latest default one from dhall-kubernetes which means 1.17)

Thanks

PierreR commented 4 years ago

I am currently using OpenShift 4.4 (Kubernetes 1.17) so the current situation is fine by me.

TristanCacqueray commented 4 years ago

I actually started to look at using the /openapi/v2 OpenShift endpoint and it seems to be working fine using the dhall-kubernetes-generator with this patch: https://github.com/dhall-lang/dhall-kubernetes/pull/120