-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Currently, kubernetes-fluent-client requires a live Kubernetes cluster to fetch CRD schemas before it can generate TypeScript types. This creates a runtime dependency for build-time tasks and prevents type generation in cluster-less CI/CD environments.
Describe the solution you'd like
Add a new export capability to KFC that allows serializing TypeScript-defined CRD versions into standard Kubernetes YAML manifests.
- Given a TypeScript file exporting a
V1CustomResourceDefinitionVersion(e.g., from@kubernetes/client-node) - When the
kfc exportcommand is executed with the source file and desired metadata (Kind, Group, Scope) - Then a valid
apiextensions.k8s.io/v1CustomResourceDefinition manifest is generated.
Acceptance Criteria:
- Support for
js-yamlserialization of deep schema objects. - Ability to specify output directory and filename patterns.
- Integration with existing KFC type generation logic to allow a
TS -> YAML -> Typesflow in a single process.
Describe alternatives you've considered
Manual YAML authoring (rejected due to duplication) or lightweight cluster simulation like Kwok (rejected to remove binary dependencies).
Additional context
See UDS Core ADR 0007 for the architectural driver behind this request.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request