UNPKG

kubernetes-models

Version:
40 lines (39 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1ObjectReference_1 = require("./IoK8sApiCoreV1ObjectReference.js"); const schema = { "properties": { "hostname": { "type": "string", "nullable": true }, "ip": { "type": "string" }, "nodeName": { "type": "string", "nullable": true }, "targetRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ObjectReference#" }, { "type": "null" } ] } }, "required": [ "ip" ], "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1ObjectReference_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.EndpointAddress", schema); } exports.addSchema = addSchema;