UNPKG

kubernetes-models

Version:
39 lines (38 loc) 861 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "containerPort": { "format": "int32", "type": "integer" }, "hostIP": { "type": "string", "nullable": true }, "hostPort": { "format": "int32", "type": "integer", "nullable": true }, "name": { "type": "string", "nullable": true }, "protocol": { "enum": [ "SCTP", "TCP", "UDP" ], "type": "string", "nullable": true } }, "required": [ "containerPort" ], "type": "object" }; export function addSchema() { register("io.k8s.api.core.v1.ContainerPort", schema); }