@k8s-ts/latest
Goals
- type-safe definition of resources
- type-safe interactions with apiserver
- easing the upgrade path for kubernetes manifests.
import {serialize} from "@k8s-ts/latest";
import {Service} from "@k8s-ts/latest/v1";
const service : Service = {
// ...
};
console.log(JSON.stringify(serialize(service)));