UNPKG

kubernetes-models

Version:
38 lines (37 loc) 871 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const schema = { "properties": { "appProtocol": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "port": { "format": "int32", "type": "integer" }, "protocol": { "enum": [ "SCTP", "TCP", "UDP" ], "type": "string", "nullable": true } }, "required": [ "port" ], "type": "object" }; function addSchema() { (0, validate_1.register)("io.k8s.api.core.v1.EndpointPort", schema); } exports.addSchema = addSchema;