kubernetes-models
Version:
44 lines (43 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const schema = {
"properties": {
"effect": {
"enum": [
"NoExecute",
"NoSchedule",
"PreferNoSchedule"
],
"type": "string",
"nullable": true
},
"key": {
"type": "string",
"nullable": true
},
"operator": {
"enum": [
"Equal",
"Exists"
],
"type": "string",
"nullable": true
},
"tolerationSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
},
"value": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
function addSchema() {
(0, validate_1.register)("io.k8s.api.core.v1.Toleration", schema);
}
exports.addSchema = addSchema;