0.1.0 • Published 8 months ago
@kubernetes-models/cloudnative-pg v0.1.0
@kubernetes-models/cloudnative-pg
CloudNative PG models.
Installation
Install with npm.
npm install @kubernetes-models/cloudnative-pg
Usage
import { Cluster } from "@kubernetes-models/cloudnative-pg/postgresql.cnpg.io/v1/Cluster";
// Create a new GitRepository
const cluster = new Cluster({
metadata: {
name: "cluster-example"
},
spec: {
instances: 3,
storage: {
size: "1Gi"
}
}
});
// Validate against JSON schema
cluster.validate();
License
MIT
0.1.0
8 months ago