kubernetes-models
Version:
48 lines (47 loc) • 1.12 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"
},
"clusterScope": {
"type": "boolean",
"nullable": true
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"resources": {
"items": {
"type": "string"
},
"type": "array"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"verbs",
"apiGroups",
"resources"
],
"type": "object"
};
function addSchema() {
(0, validate_1.register)("io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule", schema);
}
exports.addSchema = addSchema;