Skip to content
Kubernetes models in TypeScript.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
examples
scripts
src
test
.gitignore
.prettierignore
.prettierrc
LICENSE
Makefile
README.md
package-lock.json
package.json
tsconfig.build.json
tsconfig.json
tslint.json

README.md

kubernetes-models-ts

CircleCI

Kubernetes models in TypeScript.

Installation

Install with npm.

npm install kubernetes-models

Usage

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.

Build

make dist

License

MIT

You can’t perform that action at this time.