kubernetes-models
Version:
62 lines (61 loc) • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@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"
};
function addSchema() {
(0, validate_1.register)("io.k8s.api.certificates.v1.CertificateSigningRequestSpec", schema);
}
exports.addSchema = addSchema;