Kubernetes models in TypeScript.
Install with npm.
npm install kubernetes-models
import { Pod } from "kubernetes-models/v1";
// Create a new instance
const pod = new Pod({
metadata: {
name: "foo"
},
spec: {
containers: []
}
});
// Validate against JSON schema
pod.validate();
See examples folder for more examples.
MIT