kubernetes-models 0.0.3
Install from the command line:
Learn more about npm packages
$ npm install @appthrust/kubernetes-models@0.0.3
Install via package.json:
"@appthrust/kubernetes-models": "0.0.3"
About this version
Flux CD models.
Install with npm.
npm install @kubernetes-models/flux-cd
import { GitRepository } from "@kubernetes-models/flux-cd/source.toolkit.fluxcd.io/v1beta1/GitRepository";
// Create a new GitRepository
const repo = new GitRepository({
metadata: {
name: "webapp"
},
spec: {
interval: "60m",
url: "https://github.com/tommy351/kubernetes-models-ts",
ref: {
branch: "master"
}
}
});
// Validate against JSON schema
repo.validate();
MIT