UNPKG

kubernetes-models

Version:
29 lines (28 loc) 623 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "name": { "type": "string" }, "namespace": { "type": "string" }, "path": { "type": "string", "nullable": true }, "port": { "format": "int32", "type": "integer", "nullable": true } }, "required": [ "namespace", "name" ], "type": "object" }; export function addSchema() { register("io.k8s.api.admissionregistration.v1.ServiceReference", schema); }