@soft-stech/cert-manager
v4.3.1
Published
cert-manager models
Downloads
6
Readme
@kubernetes-models/cert-manager
cert-manager models.
Installation
Install with npm.
npm install @kubernetes-models/cert-manager
Usage
import { Certificate } from "@kubernetes-models/cert-manager/cert-manager.io/v1/Certificate";
// Create a new certificate
const cert = new Certificate({
metadata: {
name: "foo"
},
spec: {
secretName: "foo-secret",
dnsNames: ["foo.example.com"],
issuerRef: {
name: "letsencrypt-prod",
kind: "Issuer"
}
}
});
// Validate against JSON schema
cert.validate();
License
MIT