@kubernetes-models/cert-manager
v4.4.0
Published
cert-manager models
Downloads
4,354
Maintainers
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