UNPKG

kubernetes-models

Version:
54 lines (53 loc) 1.42 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1NodeConfigSource } from "./IoK8sApiCoreV1NodeConfigSource.mjs"; import { addSchema as IoK8sApiCoreV1Taint } from "./IoK8sApiCoreV1Taint.mjs"; const schema = { "properties": { "configSource": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.NodeConfigSource#" }, { "type": "null" } ] }, "externalID": { "type": "string", "nullable": true }, "podCIDR": { "type": "string", "nullable": true }, "podCIDRs": { "items": { "type": "string" }, "type": "array", "nullable": true }, "providerID": { "type": "string", "nullable": true }, "taints": { "items": { "$ref": "io.k8s.api.core.v1.Taint#" }, "type": "array", "nullable": true }, "unschedulable": { "type": "boolean", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApiCoreV1NodeConfigSource(); IoK8sApiCoreV1Taint(); register("io.k8s.api.core.v1.NodeSpec", schema); }