Turn Kubernetes Custom Resource Definitions (CRDs) into typesafe CDKTF constructs
Install crd-to-cdktf
as an npm dependency in your project:
npm i -D crd-to-cdktf
Or download crd-to-cdktf
as a single executable application
from the releases page.
Usage: crd-to-cdktf [OPTIONS] [FILE]
When FILE is not provided, read from stdin.
Options:
-h, --help Print this help message
-o, --output Output directory
Examples:
kubectl get crds -o yaml | crd-to-cdktf -o crds
crd-to-cdktf mycrd.yaml -o crds