kubernetes-models
Version:
46 lines (45 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const schema = {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"apiVersions": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"operations": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"scope": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
function addSchema() {
(0, validate_1.register)("io.k8s.api.admissionregistration.v1.RuleWithOperations", schema);
}
exports.addSchema = addSchema;