UNPKG

kubernetes-models

Version:
45 lines (44 loc) 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const schema = { "properties": { "operator": { "enum": [ "DoesNotExist", "Exists", "In", "NotIn" ], "type": "string" }, "scopeName": { "enum": [ "BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating" ], "type": "string" }, "values": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "required": [ "scopeName", "operator" ], "type": "object" }; function addSchema() { (0, validate_1.register)("io.k8s.api.core.v1.ScopedResourceSelectorRequirement", schema); } exports.addSchema = addSchema;