jk icon indicating copy to clipboard operation
jk copied to clipboard

Kubernetes Resource Typescript Generation

Open RichiCoder1 opened this issue 4 years ago • 1 comments

Just stumbled across this project and already a general fan! I'm currently using cdk8s, which has an import feature which allows for generating typescript class/validation from kubernetes resource definitions and CRDs. Is this something JK would consider?

Related #54

RichiCoder1 avatar May 21 '20 05:05 RichiCoder1

Yes I think so. If it can be written as, or compiled to, pure JavaScript, it could just be a module to be called with (say),

jk run -m @jkcfg/kubernetes/importtypes

This seems plausible -- it's just recursion over a YAML structure, and jk can read YAMLs. But it may not be trivial!

squaremo avatar May 25 '20 21:05 squaremo