UNPKG

kubernetes-models

Version:
34 lines (33 loc) 723 B
import { register } from "@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" }; export function addSchema() { register("io.k8s.api.core.v1.EndpointPort", schema); }