What problem does it solve?
This skill streamlines the generation and synchronization of types across the ARK stack (SDK, API, Dashboard), eliminating inconsistencies and reducing type-related bugs during CRD evolution and OpenAPI updates.
Core Features & Use Cases
- Automated type regeneration: derives Python types from Kubernetes CRD YAML via OpenAPI, then overlays custom utilities.
- Manual model alignment & overrides: supports overlay files to refine generated code and maintain consistency.
- End-to-end type pipeline visibility: tracks changes from CRD to TypeScript types on the dashboard, ensuring compatibility.
- Use Case: when CRD fields change or new API surfaces are added, regenerate and validate types across ark-sdk, ark-api, and ark-dashboard.
Quick Start
Run make ark-sdk-build to regenerate the SDK types, run make ark-api-build to update API models, and npm run generate:api to refresh dashboard types. If needed, copy overlays into lib/ark-sdk/gen_sdk/overlay/python/ark_sdk/.