kubernetes-models
Version:
58 lines (57 loc) • 1.35 kB
JavaScript
import { register } from "@kubernetes-models/validate";
const schema = {
"properties": {
"expirationSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"extra": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object",
"nullable": true
},
"groups": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"request": {
"format": "byte",
"type": "string"
},
"signerName": {
"type": "string"
},
"uid": {
"type": "string",
"nullable": true
},
"usages": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"username": {
"type": "string",
"nullable": true
}
},
"required": [
"request",
"signerName"
],
"type": "object"
};
export function addSchema() {
register("io.k8s.api.certificates.v1.CertificateSigningRequestSpec", schema);
}