kubernetes-models
Version:
48 lines (47 loc) • 1.83 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiFlowcontrolV1beta2FlowDistinguisherMethod_1 = require("./IoK8sApiFlowcontrolV1beta2FlowDistinguisherMethod.js");
const IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationReference_1 = require("./IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationReference.js");
const IoK8sApiFlowcontrolV1beta2PolicyRulesWithSubjects_1 = require("./IoK8sApiFlowcontrolV1beta2PolicyRulesWithSubjects.js");
const schema = {
"properties": {
"distinguisherMethod": {
"oneOf": [
{
"$ref": "io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod#"
},
{
"type": "null"
}
]
},
"matchingPrecedence": {
"format": "int32",
"type": "integer",
"nullable": true
},
"priorityLevelConfiguration": {
"$ref": "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference#"
},
"rules": {
"items": {
"$ref": "io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#"
},
"type": "array",
"nullable": true
}
},
"required": [
"priorityLevelConfiguration"
],
"type": "object"
};
function addSchema() {
(0, IoK8sApiFlowcontrolV1beta2FlowDistinguisherMethod_1.addSchema)();
(0, IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationReference_1.addSchema)();
(0, IoK8sApiFlowcontrolV1beta2PolicyRulesWithSubjects_1.addSchema)();
(0, validate_1.register)("io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec", schema);
}
exports.addSchema = addSchema;