Kuberentes API resources model generator for Swiftkube:Model
This tool converts Kuberentes JSON schema definitions into Swift structs using Stencil templates. The JSON definitions are mapped from their openAPI counterparts via openapi2jsonschema.
- Performance
- Reusability
- Clean code
Clone this repository and run:
swift build
Run the script:
swiftkube-modelgen --api-version v1.18.9 --templates templates/model --output <path for generated model>