UNPKG

kubernetes-models

Version:
50 lines (49 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1NodeAffinity_1 = require("./IoK8sApiCoreV1NodeAffinity.js"); const IoK8sApiCoreV1PodAffinity_1 = require("./IoK8sApiCoreV1PodAffinity.js"); const IoK8sApiCoreV1PodAntiAffinity_1 = require("./IoK8sApiCoreV1PodAntiAffinity.js"); const schema = { "properties": { "nodeAffinity": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.NodeAffinity#" }, { "type": "null" } ] }, "podAffinity": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PodAffinity#" }, { "type": "null" } ] }, "podAntiAffinity": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PodAntiAffinity#" }, { "type": "null" } ] } }, "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1NodeAffinity_1.addSchema)(); (0, IoK8sApiCoreV1PodAffinity_1.addSchema)(); (0, IoK8sApiCoreV1PodAntiAffinity_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.Affinity", schema); } exports.addSchema = addSchema;